zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

14 results in tag: entity-framework-4

How to ask the database server for current datetime using entity framework?

I have an entity with a ModifiedDateTime property which I want to be updated with the current datetime from the database instead of the "application" server executing the application....Every time I want to update or add a person to my datebase on SQL Ser...
entity-framework entity-framework-4 entity-framework-6
asked by Levelbit

Check if there are any pending changes to be saved

Is there a way to find out whether there are unsaved changes in my entity context, in the Entity Framework?
entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by Palantir

Table-per-type inheritance with EF 4.1 Fluent Code First

I have a pretty straight forward set of database tables, like:...Vehicle Id RegNo Car Id (FK of Vehicle.Id) OtherStuff Bike Id (FK of Vehicle.Id) MoreStuff ...My class model is as you'd expect: with Vehicle being an abstract class, and then Car an...
entity-framework entity-framework-4 entity-framework-4.1 entity-framework-6 table-per-type
asked by nbevans

Upgrade EF 4 EDMX to EF 6

My application is using a database first EDMX in EF 4. I would like to upgrade everything to EF 6. After getting EF 6 with NuGet I had to make a lot of changes to my classes that are using my EF model, because namespaces have been changed in EF 6. Then I ...
entity-framework entity-framework-4 entity-framework-6
asked by SolarX

Two foreign keys with same Navigation Property?

I am new to Entity Framework so I don't know much about it. Currently I am working on My College Project, in that Project I came across a problem where I have two foreign keys refers to the Same column in another table. how can I handle this situation. ..
c# entity-framework entity-framework-4 entity-framework-6 orm
asked by Ankit Agrawal

ObjectStateManager vs Entry().State

What is the difference between this two and which is preferred? using change object state or ...Entry().state...db.ObjectStateManager.ChangeObjectState(employeeFromDB, EntityState.Modified) ...vs...context.Entry(employeeFromDB).State = EnitityState.Modifi...
entity-framework entity-framework-4 entity-framework-6
asked by myfinite

how to insert parent child while doing entityframework.bulkinsert?

I am using Entityframework 6, I am trying to insert a parent-child kind of data in the database. I am using Entityframework.BulkInsert to insert data. I have ...autoIncrement int primary key... in all the tables...My object is as follows :... var paren...
entity entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by user3825003

Entity Framework get user from contex in saveChanges

i have two projects in my solution, UI as mvc and class project for entitiy model code first. I have severall entities in my model but now I need to extend them by new audit fields where I need to save who changed entity. I added new interface...public i...
c# entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by kosnkov

How to pass null values into stored procedure via Entity Framework?

I am using an ASP.NET MVC 4 application with Entity Framework....I want to pass null values conditionally, let's say if pass value into ...DeptID... then it should list of values for only passed ...DeptID..., and if pass ...DeptID = NULL... then it should...
asp.net-mvc-4 entity-framework entity-framework-4 entity-framework-6 sql-server
asked by skiskd

Error occured while Entity Framework generating model

I'm having very few tables in my edmx (not more than 20)...I'm having big list of stored procedures (may be more than 1k) in my edmx....EF version 5.0...Whenever I try to add/update model from DB it always throw this error, can any one help me out with th...
asp.net-mvc-5 entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by Mox Shah

An exception of type 'System.Data.Entity.Core.EntityException' occurred in EntityFramework.SqlServer.dll but was not handled in user code

I am new to ASP.NET MVC, I am facing this exception, the connection string looks perfect but still, the exception is raised, appreciate if anyone give me why is happening....Thank you guys...Model 1...namespace MVCTwice.Models { public class StudentCo...
asp.net-mvc asp.net-mvc-4 entity-framework entity-framework-4 entity-framework-6
asked by Alexander Zaldostanov

Entity framework- EF Code First Select foreign key

Model:...public class Address { [Key] public long AddressId { get; set; } public string Street { get; set; } public string Town { get; set; } public string State { get; set; } public string Country { get; set; } } public class ...
asp.net-mvc-5.2 entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by jena malone

EntityFramework: Database.CurrentTransaction becomes null when exception occurs

Today I faced strange issue with Entity Framework. Consider following class:...public partial class Entities { ... public void DocumentUpdateForSync(string userLogin, IEntrySync document) { var timeEntry = document as Domain.Documents.TimeEntry; ...
c# entity-framework entity-framework-4 entity-framework-6 orm
asked by Sergey

ASP.NET MVC Auto generate integer number

Good day, a really newbie developer here....I Have a form and it have a entity of "QueueNumber" Can someone show me how to code so that when ever i save my form it generates automatically QueueNumber + the Prefix, btw my prefix entity is in another class ...
asp.net asp.net-mvc entity-framework entity-framework-4 entity-framework-6
asked by Carlo Toribio

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!