InvalidCastException When Attaching Entity in EF 5 with Different Types to Those Being Attached

SO Post http://stackoverflow.com/questions/26511136/invalidcastexception-when-calling-attach-entity-framework-5 Using TPT Basically I have a Type that has a table (GeneralBasketItem). This is ...

Id #2567 | Release: None | Updated: Today at 10:42 AM by MagicCloud | Created: Today at 10:42 AM by MagicCloud

EF 6.1.1 To use UNICODE characters, use an escaped identifier.

When using Chinese entity name, a statement like var ent = String.Join(",", log.Entities.Select(L => L.Type ).ToList().Distinct()); gives an EntitySqlException The simple identifier '部门' must...

Id #2566 | Release: None | Updated: Today at 7:30 AM by wps8848 | Created: Today at 6:30 AM by wps8848

Please provide a RemoveAll or GetEnumerator method in ConventionsConfiguration

We're building a code first model generator framework above EF, which does its magic based on a UML model. We always explicitly specify everything that's needed to generate the database: all column...

Id #2565 | Release: None | Updated: Wed at 7:44 PM by fejesjoco | Created: Wed at 7:44 PM by fejesjoco

Entity returned from stored procedue cannot contain complex type.

For the following POCOs public class Graph { public Id {get; set;} public Element prop{get; set;} } public class Element { public Id {get; set;} } where Graph is configured as EntityType...

Id #2563 | Release: None | Updated: Wed at 7:14 PM by DrDave | Created: Wed at 7:14 PM by DrDave

EF resolves wrong provider

When using SQL CE private deployment and a binding redirect, EF resolves the "wrong" provider version, causing the app to fail. I think it may be due to ordering in the machine.config. but the inva...

Id #2562 | Release: Investigation | Updated: Thu at 8:48 AM by stavn | Created: Wed at 5:16 PM by ErikEJ

Working Sets

Overview We propose a new method on DbContext, perhaps called WorkingSet<TEntity>(), Working<TEntity>(), CurrentSet<TEntity>(), Current<TEntity>(), UnsavedSet<TEntity>(), Unsaved<TEntity>() or simi...

Id #2561 | Release: None | Updated: Wed at 11:30 PM by RoMiller | Created: Wed at 2:44 PM by tnelis

Very slow query plan building/outofmemory exception

Giving the following model: public class BugContext : DbContext { protected override void OnModelCreating(DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); ...

Id #2560 | Release: Investigation | Updated: Wed at 6:47 PM by RoMiller | Created: Oct 18 at 10:17 PM by XIU

Database connection failure for newly created database

While investigating the issue 2540, it came to notice that whenever new database is created on SQL server, it does not become available to connect immediately. If the source code tries to connect t...

Id #2558 | Release: None | Updated: Oct 17 at 6:39 AM by ErikEJ | Created: Oct 17 at 1:19 AM by smitpatel

Query: Make GetMethod used in QueryableExtensions compatible with Roslyn C# compiler

(From an internal email thread) A customer reported that he is getting an exception when trying to use EF 6.1.2 beta on a simple query: Code: NORTHWNDEntities ctx = new NORTHWNDEntities(); var ...

Id #2557 | Release: EF 6.1.2 | Updated: Wed at 10:29 PM by AndriySvyryd | Created: Oct 17 at 1:16 AM by divega

Make sure we don't ship runtime builds created using the Roslyn C# compiler yet

We had a customer report that indicates that there is at least one pre-release package of EF 6.1.2 in the wild that was built using the Roslyn C# compiler. There are a few known breaking changes...

Id #2556 | Release: EF 6.1.2 | Updated: Today at 5:54 PM by lajones | Created: Oct 17 at 12:21 AM by divega