Top "Entity-framework" questions

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

How to include a child object's child object in Entity Framework 5

I am using Entity Framework 5 code first and ASP.NET MVC 3. I am struggling to get a child object's child …

entity-framework entity-framework-4 entity-framework-5 entity-framework-4.1
Remove item from list based on condition

I have a struct like this: public struct stuff { public int ID; public int quan; } and want to to remove …

c# .net entity-framework linq
Entity Framework code first unique column

I am using Entity Framework 4.3 and using Code Fist. I have a class public class User { public int UserId{get;…

entity-framework data-annotations entity-framework-4.3
How to re-create database for Entity Framework?

I have got into a bad state with my ASP.Net MVC 5 project, using Code-First Entity Framework. I don't care …

asp.net-mvc entity-framework azure azure-sql-database
Determine version of Entity Framework I am using?

I believe there are two versions 1 and 2? And version 2 is referred to as Entity Framework 4.0? How can I tell what …

entity-framework
Error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

I recently upgraded/updated Entity Framework in an old project from version 4 or 5 to version 6. Now I get this exception: …

c# .net entity-framework ado.net entity-framework-6
Entity Framework Core: A second operation started on this context before a previous operation completed

I'm working on a ASP.Net Core 2.0 project using Entity Framework Core <PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.1" /> <…

c# entity-framework asp.net-web-api
How can i query for null values in entity framework?

I want to execute a query like this var result = from entry in table where entry.something == null select entry; …

.net entity-framework ado.net
"A lambda expression with a statement body cannot be converted to an expression tree"

In using the EntityFramework, I get the error "A lambda expression with a statement body cannot be converted to an …

c# linq entity-framework linq-to-entities