Invalid metadata

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
AudioPat
Posts: 10
Joined: Fri 19 Jun 2015 15:47

Invalid metadata

Post by AudioPat » Wed 04 May 2016 20:19

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}

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Invalid metadata

Post by AlexP » Thu 05 May 2016 05:22

Hello,

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Invalid metadata

Post by AlexP » Thu 05 May 2016 09:39

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.

Post Reply