When we construct a LINQ query using the TEntityQuery component, a Invalid metadata is throwed when you select a Integer field that's not a Primary key into the select statement:
Invalid metadata error: (c.Parent = type integer, not null)
Code: Select all
from c in category
select new{c.ID, c.Parent}
Code: Select all
from c in category
select new{c.ID, C.Name}
Code: Select all
from c in category
select new{c.Parent}