Concurrency checking does not work when Entity Framework is used with Web API 2 Odata Controllers

When saving an Entity Framework (6.1.3) entity with a Timestamp column (concurrency mode set to "Fixed"), Entity Framework uses the original value obtained when the entity was first loaded for the ...

Id #2789 | Release: None | Updated: Today at 5:27 PM by indigosquared | Created: Today at 5:24 PM by indigosquared

Could not load file or assembly EntityFramework Version 5.0.0.0

If I try the EF Code First Migration sample with the EF 5.0.0 NuGet package I can create the initial database without problems. At the moment I use the Enable-Migrations command I get the following...

Id #2788 | Release: Investigation | Updated: Wed at 7:01 PM by RoMiller | Created: Tue at 6:41 PM by antiohne

Breaking Change: Query crashes when compiled with VS2015 RTM (Roslyn compiler)

The following query crashes when compiled with VS2015 RTM, but works when compiled with the old compiler in VS2013: public async Task<List<ProductRelation>> FailingQuery(SampleEnum queryOption) ...

Id #2785 | Release: EF 6.2.0 | Updated: Today at 6:20 PM by RoMiller | Created: Mon at 6:54 AM by rothdave

We sometimes expose PK values in exception messages

Some exceptions contain information about Entity Key value. This may be a security concern, if the key is not surrogate. We should consider not exposing those values via exception messages

Id #2784 | Release: EF 6.2.0 | Updated: Wed at 7:05 PM by RoMiller | Created: Jul 24 at 8:45 PM by maumar

DbContext.Attach is slower than a query

I'am trying to load entities through several threads where each thread has its own DbContext with the Option NoTracking to get a performance benefit of retrieving the data. After that i tried to at...

Id #2783 | Release: Investigation | Updated: Jul 24 at 6:11 PM by RoMiller | Created: Jul 22 at 9:00 PM by Killerkeule

Add extension Method to System.Linq.IQueryable

I have two extension methods like this public static IQueryable<T> CurrentVersion(this IQueryable<T> queryable, DateTime date) { return queryable.Where(p => p.CreationDate>date); } public...

Id #2778 | Release: Investigation | Updated: Jul 14 at 6:20 PM by RoMiller | Created: Jul 14 at 8:10 AM by mazad

EF composite keys with GUIDs won't load relationships

Ok, so I have a weird one... It looks like if you have composite keys that include a Guid then navigation properties don't work unless the Guid is an empty guid (All zeros). to much code to put h...

Id #2777 | Release: Investigation | Updated: Jul 16 at 6:55 PM by jhandel | Created: Jul 13 at 12:57 PM by jhandel

SQL includes unnecessary columns

EF will include extra Id columns when selecting a bunch of columns to retrieve, but it does not do so when selecting a single column: using System; using System.Collections.Generic; using System.Co...

Id #2773 | Release: Investigation | Updated: Jul 10 at 6:26 PM by RoMiller | Created: Jul 5 at 4:14 PM by br1

Wrong SQL translation of left join ... group by ... count()

This is some simple code for user polls. I'm trying to count poll votes: public class PollAnswer : EntityBase { public PollAnswer() { PollUserAnswers = new HashSet<PollUserAnswer>()...

Id #2764 | Release: Investigation | Updated: Jun 16 at 6:16 PM by RoMiller | Created: Jun 16 at 12:19 PM by xumix

Query :: incorrect sql produced for query with ToString

Copied from here: https://github.com/aspnet/EntityFramework/issues/2373 hiwjcn: just a test: int i=0; List<user> list=db.Set<user>().Where(x=>x.user_email==i.ToString()).ToList(); When i pu...

Id #2763 | Release: Investigation | Updated: Jun 16 at 6:17 PM by RoMiller | Created: Jun 15 at 9:03 PM by maumar