"IMetaDataExpression" can't find it in that unit.

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
sglqh
Posts: 8
Joined: Fri 09 Nov 2018 02:33

"IMetaDataExpression" can't find it in that unit.

Post by sglqh » Thu 20 Dec 2018 13:51

var
Emp,
Dept: IMetaDataExpression;
begin
Emp := DataContext.Types['Emp'];
Dept := DataContext['Dept'];
end;

"IMetaDataExpression" can't find it in that unit.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: "IMetaDataExpression" can't find it in that unit.

Post by MaximG » Fri 21 Dec 2018 12:35

Please describe the task in more detail. What version of EntityDAC are you using in your project?

sglqh
Posts: 8
Joined: Fri 09 Nov 2018 02:33

Re: "IMetaDataExpression" can't find it in that unit.

Post by sglqh » Sat 29 Dec 2018 06:14

https://www.devart.com/entitydac/docs/r ... ctions.htm


Declaration and initialization of a range variable that defines an initial sequence for a LINQ query
Declaration:

var
range-variable: IMetaDataExpression;
Initialization:

meta-type-name = string value

range-variable := data-context.Types[meta-type-name]
| range-variable := data-context[meta-type-name]
Sample:

var
Emp,
Dept: IMetaDataExpression;
begin
Emp := DataContext.Types['Emp'];
Dept := DataContext['Dept'];
end;

IMetaDataExpression In which unit?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: "IMetaDataExpression" can't find it in that unit.

Post by MaximG » Thu 03 Jan 2019 12:25

Thank you for the explanation. We will check the relevance of the information in our EntityDAC documentation and change it in accordance with the latest version of our product. Currently, you can familiarize yourself with the basic features of working with EntityDAC using the demos distributed with our product.

Post Reply