Exponential size for SQL generated by nested SELECTs

When a query repeatedly applies a Select() with the same element type, the query generated is exponentially large. Here's an example (runs in LinqPad): void Main() { Database.SetInitializer(new ...

Id #2754 | Release: None | Updated: Tue at 2:53 PM by chasemedallion | Created: Tue at 2:53 PM by chasemedallion

DatabaseGeneratedOption.Identity does not work properly

I am using EF 6.1.3, code first Now for example, I specify the following [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid Id { get; private set; } It works fine. See the SQL st...

Id #2753 | Release: None | Updated: Tue at 2:39 AM by woodwind | Created: Tue at 2:39 AM by woodwind

UpForGrabs: A first chance exception of type 'System.IndexOutOfRangeException'

When calling Database.SqlQuery<T> and there is a type property that does not match the sql query result and while debugging I get the "A first chance exception of type 'System.IndexOutOfRangeExcept...

Id #2752 | Release: Future | Updated: May 22 at 6:41 PM by RoMiller | Created: May 22 at 6:22 AM by vasim

StackOverFlowException

Very occasionally I receive the following StackOverFlowException when our product is starting up. Not sure what the mechanism that triggers this is. The following is repeated to the maximum num...

Id #2750 | Release: None | Updated: May 20 at 9:59 PM by RoMiller | Created: May 19 at 5:40 PM by jonreis

UpForGrabs: OSpaceTypeFactory.TryCreateType(Type, EdmType) fails when passed an interface

One of my model types has the same short name as one of my other types. The latter is an interface that has no base interface. When the OSpace loads types from the assembly, it loads my (non-model)...

Id #2745 | Release: Future | Updated: May 19 at 3:36 PM by firelizzard | Created: May 8 at 3:24 PM by firelizzard

Consider making DbContext.Entry() method (and other members of DbContext) virtual

Moving this from https://github.com/aspnet/EntityFramework/issues/2088 @alisabzevari said: Many of methods in DbContext are virtual. So they can be mocked using Moq or similar frameworks. But En...

Id #2741 | Release: EF 6.2.0 | Updated: May 21 at 6:25 AM by alisabzevari | Created: Apr 29 at 10:28 PM by divega

No Lazy Loading in EF 6.1.3?

It looks like lazy loading doesn't work in EF 6.1.3. I have created the smallest possible project to evaluate lazy loading. It can be downloaded here. It shows that lazy loading is not working ...

Id #2740 | Release: Investigation | Updated: May 18 at 6:56 PM by RoMiller | Created: Apr 27 at 10:08 AM by SetTrend

Loading an entity with Query doesn't work

I have a User entity with a collection of Roles that I am trying to load. I execute this statement... _Context.Entry(user).Collection(x => x.Roles) .Load(); The User's Roles are loaded. I can...

Id #2734 | Release: Investigation | Updated: May 18 at 7:03 PM by RoMiller | Created: Apr 18 at 5:07 PM by Oliwa

Install EntityFramework.6.1.3 with VS 2015 Preview

Using NuGet I have tried installing EntityFramework.6.1.3. I get the following error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=3.0....

Id #2733 | Release: None | Updated: May 18 at 9:51 PM by RoMiller | Created: Apr 16 at 4:15 PM by CodeForOne

UpForGrabs: Even when upcasting : Unable to cast the type / LINQ to Entities only supports casting EDM primitive or enumeration types

This issue makes it pretty much impossible to project queries into DTOs when there is polymorphism involved. With class structure like: AbstractBase (Entity) SubA (Entity) SubB (Entity) Ab...

Id #2730 | Release: Future | Updated: May 14 at 3:49 AM by Gluck_13 | Created: Apr 10 at 9:43 PM by acherryresilience