I\'m using EF 6.1.0 and was creating a WCF Service.
First I created a Class Library containing my entities, Mappers and Context for initializing EF. I\'ve also creat
I got caught with this one because I referenced the reference property instead of the Id property.
var t = modelBuilder.Entity(); t.HasIndex(b => b.DocTypeId);