Top "Entity-framework" questions

Entity Framework is a LINQ-based object-database mapper for .NET.

Conversion of a datetime2 data type to a datetime data type results out-of-range value

I've got a datatable with 5 columns, where a row is being filled with data then saved to the database via …

c# sql-server entity-framework datetime orm
How do I view the SQL generated by the Entity Framework?

How do I view the SQL generated by entity framework ? (In my particular case I'm using the mysql provider - …

entity-framework ado.net
Entity Framework: "Store update, insert, or delete statement affected an unexpected number of rows (0)."

I am using Entity Framework to populate a grid control. Sometimes when I make updates I get the following error: …

entity-framework
Entity Framework Join 3 Tables

I'm trying to join three tables but I can't understand the method... I completed join 2 tables var entryPoint = dbContext.tbl_…

c# entity-framework entity-framework-4 entity-framework-5 entity-framework-4.1
Delete a single record from Entity Framework?

I have a SQL Server table in Entity Framework named employ with a single key column named ID. How do …

c# sql-server entity-framework
EF Migrations: Rollback last applied migration?

This looks like a really common task, but I can't find an easy way to do it. I want to …

entity-framework entity-framework-4 database-migration entity-framework-migrations
Unable to update the EntitySet - because it has a DefiningQuery and no <UpdateFunction> element exist

I am using Entity Framework 1 with .net 3.5. I am doing something simple like this: var roomDetails = context.Rooms.ToList(); foreach (…

c# asp.net .net entity-framework primary-key
How do I delete multiple rows in Entity Framework (without foreach)

I'm deleting several items from a table using Entity Framework. There isn't a foreign key / parent object so I can't …

entity-framework
Validation failed for one or more entities while saving changes to SQL Server Database using Entity Framework

I want to save my Edit to Database and I am using Entity FrameWork Code-First in ASP.NET MVC 3 / C# …

c# sql asp.net-mvc entity-framework code-first
Value cannot be null. Parameter name: source

This is probably the biggest waste of time problem I have spent hours on solving for a long time. var …

c# asp.net-mvc entity-framework