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: Apr 29 at 9:35 PM by RoMiller | 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

Simplify transaction handling samples

Our current set of documentation for using transactions with EF6 includes some samples that follow this pattern: using (var context = new BloggingContext()) { using (var dbContextTransaction = co...

Id #2909 | Release: EF 6.2.0 | Updated: Apr 22 at 6:39 PM by RoMiller | Created: Apr 15 at 10:06 PM by divega

SQL azure | Entity Framework | Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding

Hello, I have a sample web application using Entity Framework to connect to SQL server. I’m using code first approach and enable code first migrations. I have added the below code in the Glob...

Id #2908 | Release: None | Updated: Apr 29 at 5:57 PM by RoMiller | Created: Apr 11 at 5:03 PM by KirKum

AddOrUpdate error when identifyingProperty is nullable

Hi, There is an error in AddOrUpdate method. Let's look on such example: public class Test { public Guid? SomeKey { get; set;} } protected override void Seed(TestContext context) { var enti...

Id #2907 | Release: EF 6.2.0 | Updated: Apr 22 at 6:36 PM by RoMiller | Created: Apr 11 at 7:58 AM by maziarkaradoslaw