Foreign Key inserted when not set

We have found what we believe might be a bug in EntityFramework 6.1.3. Either it's a bug of something is happening that we don't understand. We have two tables in our database with the following...

Id #2921 | Release: None | Updated: Fri at 10:24 PM by mkarges | Created: Fri at 10:24 PM by mkarges

Investigate parameter type mismatches for DateTime affecting AlwaysEncrypted scenarios

It seems that EF may currently create parameters with type SqlDbType.DateTime2 for columns that are of type DateTime in the database. This works generally because of implicit conversions but it won...

Id #2920 | Release: Investigation | Updated: Thu at 9:10 PM by divega | Created: Thu at 6:45 PM by divega

Remove binaries from project, use target file instead

Having binaries added to the project is not very convenient, goes against good practice, git doesn't like it, and it is not necessary. Use a target file instead to copy them from the packages fold...

Id #2919 | Release: None | Updated: Thu at 7:18 AM by RumenG | Created: Tue at 5:48 PM by terje2000

scaffold source code corruption

dbcontext scaffold already run with -c contextname -o Outputdir -s dbschema Controller created with views and so on database changed rerun dbcontext scaffold unfortunatelly with a typo: -c context...

Id #2918 | Release: None | Updated: Apr 29 at 1:28 PM by mneumann | Created: Apr 28 at 8:29 PM by mneumann

SaveChanges() empties nested identifying relationship collection on updates

I have model with nested identifying relationship (parent > child > grandchild). When updating existing entity, SaveChanges() call loses the relationship between child and grandchild, i.e. empties ...

Id #2917 | Release: None | Updated: Apr 26 at 7:54 AM by panuvuorinen | Created: Apr 26 at 7:54 AM by panuvuorinen

Mapping to an inherited Property as FK via CodeFirst

I'm trying to map the following class relationship. I have got a Campaign object which has 1:M relationship with TestRecipient and SeedRecipient, i.e. a Campaign can have many test and seed recipie...

Id #2916 | Release: None | Updated: Apr 25 at 5:18 PM by krz1000 | Created: Apr 25 at 5:01 PM by krz1000

complex types with Many-to-(zero or) one associations

Allow adding a foreign-key association from a complex-type class to an entity. From code-first point of view, enable HasRequired() and HasOptional() on ComplexTypeConfiguration as they are on Enti...

Id #2915 | Release: None | Updated: Apr 25 at 3:17 PM by marcal1 | Created: Apr 25 at 3:17 PM by marcal1

Microsoft.SqlServer.Types NuGet package - upgrade to v12

The subject package hasn't been updated since Dec 2014. I can't get it to work with SQL Azure but I'm not sure if that's because the NuGet package is out of date or because of some error on my end....

Id #2914 | Release: EF 6.2.0 | Updated: Apr 22 at 6:42 PM by RoMiller | Created: Apr 22 at 3:35 PM by mattfrear

Using DB sequence for primary keys fields

It is not possible to insert record to the MS SQL DB using EF6 using the following approach: We have MS SQL DB with tables where primary key fields filled with sequence. Sequence is defined as def...

Id #2913 | Release: None | Updated: Wed at 5:03 AM by OleksandrChekmez | Created: Apr 22 at 11:51 AM by OleksandrChekmez

Stackoverflow exception when selecting a large number of columns from a view and not using a strongly typed entity

Moved from https://github.com/aspnet/EntityFramework/issues/5131 We have a bit of an odd use-case and I think I may have uncovered a bug. I am going to be as clear as I can, but please ask any qu...

Id #2910 | Release: EF 6.2.0 | Updated: Apr 21 at 3:10 PM by jkaiser | Created: Apr 20 at 7:53 PM by RoMiller