I am trying to load a partial entity with Linq to Entities:
Dim contacts = From c In My.Context.Contacts _
Select New Contact With { _
.ContactId = c.ContactId, _
.Name = c.Name
}
I tried it and I get the following NotSupportedException: "The entity or complex type 'CompleteKitchenModel.Contact' cannot be constructed in a LINQ to Entities query."
Thanks