Page 1 of 1

Invalid metadata

Posted: Wed 04 May 2016 20:19
by AudioPat
Hi,

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}
Valid LINQ:

Code: Select all

from c in category
select new{c.ID, C.Name}
Invalid metadata:

Code: Select all

from c in category
select new{c.Parent}

Re: Invalid metadata

Posted: Thu 05 May 2016 05:22
by AlexP
Hello,

The problem is not reproduced. Please send your model to support*devat*com .

Re: Invalid metadata

Posted: Thu 05 May 2016 09:39
by AlexP
We can't reproduce the issue on the latest EntityDAC version. Please download the latest EntityDAC version 1.5.9 and try to reproduce the issue again.