Update to navigation property does not work depending on other navigation property

We encountered what we believe is a bug in Entity Framework 6.0.0 and 6.1.3 today, model is created from an existing database, foreign keys are not exposed. I have succeeded in getting a minimal so...

Id #2891 | Release: Investigation | Updated: Mar 7 at 7:46 PM by RoMiller | Created: Mar 3 at 1:58 PM by mattsve

Visual Studio 2015 crashes with EF 6.1.3

I've a VB solution in VS 2015 Community Update 1, .Net 4.6.1 on Windows 8.1 64 bit with a Windows form executable project and class library project. In the class library project i defined an entit...

Id #2878 | Release: Investigation | Updated: Feb 16 at 7:37 PM by RoMiller | Created: Jan 28 at 1:23 PM by Stefano66

UpForGrabs: nullable enum generates cast on sql query

Using the following sample class: public class test { public long Id { get; set; } public string Name { get; set; } public Status? Status { get; set; } } public enum Status : short { Active, Stan...

Id #2859 | Release: Future | Updated: Feb 18 at 11:52 PM by RoMiller | Created: Dec 2, 2015 at 6:30 PM by frbatist

Disappearing double-child entities after commit

I have following structure: class Parent { public int Id { get; set; } public virtual ICollection<Child> Children { get; set; } } class Child { public int Id { get; set; } public i...

Id #2857 | Release: Investigation | Updated: Feb 17 at 7:41 PM by RoMiller | Created: Nov 24, 2015 at 5:04 AM by iremezoff

Base class Ignore() conflicts when using navigation properties

In Code First when using a base class with navigation properties, if the base class has any Ignore() directives, any introduction of derived classes results in the following error: You cannot use...

Id #2856 | Release: Investigation | Updated: Dec 8, 2015 at 4:26 PM by dave_lewis | Created: Nov 18, 2015 at 9:31 PM by brettpostin

SerializationException even for Serializable exceptions

When running the command-line migrate tool through the Package Manager Console (e.g. "Update-Database" or "Add-MIgration" command) and a custom exception happens, I get this code: System.Runtime.S...

Id #2836 | Release: Investigation | Updated: Oct 13, 2015 at 7:43 PM by RoMiller | Created: Oct 12, 2015 at 1:22 PM by tompazourek

Unable to cast object of type 'System.Data.Entity.Core.Query.InternalTrees.SortOp' to type 'System.Data.Entity.Core.Query.InternalTrees.ProjectOp

Unable to cast object of type 'System.Data.Entity.Core.Query.InternalTrees.SortOp' to type 'System.Data.Entity.Core.Query.InternalTrees.ProjectOp. Getting this when running the query: return ct...

Id #2834 | Release: Investigation | Updated: Oct 13, 2015 at 7:41 PM by RoMiller | Created: Oct 8, 2015 at 1:09 PM by emilm

UpForGrabs: Increasing details in the exception of model validation

System.Data.Entity.ModelConfiguration.ModelValidationException "Name: Each property name in a type must be unique. Property name 'xxx' is already defined" Could be possible to add more details ...

Id #2824 | Release: Future | Updated: Oct 13, 2015 at 6:10 PM by RoMiller | Created: Sep 18, 2015 at 8:37 AM by GibbOne74

How to configure a foreign key to be a part of a composite primary key in Code First?

I'm trying to follow the TPC pattern. I've one abstract class called Entity which is inherited by Person and LegalEntity. public abstract class Entity { public int Id { get; set; } } public cla...

Id #2818 | Release: Investigation | Updated: Dec 9, 2015 at 1:08 PM by jhglola | Created: Sep 14, 2015 at 3:35 PM by IssaDawaji

EF 6.1.3 slow startup time for simple database

Hi! I've created simple console application to test if EF is faster than NH especially for first query. Solution is in attachment. The problem is that this test app takes around 8 seconds to finis...

Id #2811 | Release: Investigation | Updated: Oct 6, 2015 at 7:22 PM by RoMiller | Created: Sep 1, 2015 at 9:01 PM by Gwynnbleid1