Hi, I'm using version 5.0 (5.0.7) RTM.
I have created a few Dto's in a DerivedModel. My EntityModel has awful naming conventions, so i have given the property names on my DTOs nice readable names. This works fine unless i edit the Primary Key Property Name on the DTO. If i do this, i get an error on the on 'CreatePkPredicate' method.
I think the property names are backwards:
public static System.Linq.Expressions.Expression<Func<EntityClasses.PurchorderEntity, bool>> CreatePkPredicate(IEnumerable<DtoClasses.PurchaseOrderDto> dtos)
{
var ids = dtos.Select(p__1=>p__1.CoyId).ToList();
return p__0 => ids.Contains(p__0.AccountingCompanyId);
}
In this example if i switch it round to:
public static System.Linq.Expressions.Expression<Func<EntityClasses.PurchorderEntity, bool>> CreatePkPredicate(IEnumerable<DtoClasses.PurchaseOrderDto> dtos)
{
var ids = dtos.Select(p__1 => p__1.AccountingCompanyId).ToList();
return p__0 => ids.Contains(p__0.CoyId);
}
Maybe it's already been identified, but i couldn't see it in the forum anywhere.