entity-framework
Entity Framework 4 (using EDMX), how to add a field into to model that DB does not have the field actually
I need to add a field into model that Database does not have the field actually.
Entity Framework soft delete implementation using database interceptor not working
I have implemented a database soft delete (a boolean flag that marks entries as deleted) using the following tutorial: http://www.codeguru.com/csharp/csharp/soft-deleting-entities-cleanly-using-entity-framework-6-interceptors.html
How to Delete multiple records in Linq to Entity?
I have a tblA in sql: id int (primary key) fid int data in tblA is: 1 1 2 1 3 2 4 2 5 3 6 3 i delete one record by following code: DatabaseEntities obj = new DatabaseEntities(); int i = 2; tblA t = obj.tblA.Where(x => x.fid == i).FirstOrDefault(); obj.DeleteObject(t); obj.SaveChanges(); i … Read more
How does Entity Framework generate a GUID for a primary key value?
When we run the ASP.NET application and register the user, Entity Framework automatically sets the unique id (PK) in AspNetUser table:
Could not load file or assembly ‘MySql.Data, Version=6.3.6.0
I’m at a COMPLETE loss – I’m having super wierd issues with what I still really dont even understand… I’m running Entity Framework 4.1, MySql 5.xx and my MySql Connector is v 6.4.4 – everything works beatifully locally however whenever I upload to the server I receive:
Using DTO’s with OData & Web API
Using Web API and OData, I have a service which exposes Data Transfer Objects instead of the Entity Framework entities.
Execution of the command requires an open and available connection. The connection’s current state is broken.
After some use in qa we get the following error
How to fix “SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.”
SqlException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.
Entity Framework disposing with async controllers in Web api/MVC
I have this little sample of code: