Invalid metadata

Invalid metadata

Postby 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}
AudioPat
 
Posts: 10
Joined: Fri 19 Jun 2015 15:47

Re: Invalid metadata

Postby 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

Postby 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.
AlexP
Devart Team
 
Posts: 5530
Joined: Tue 10 Aug 2010 11:35


Return to EntityDAC