Page 1 of 1

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

Posted: Thu 20 Dec 2018 13:51
by sglqh
var
Emp,
Dept: IMetaDataExpression;
begin
Emp := DataContext.Types['Emp'];
Dept := DataContext['Dept'];
end;

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

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

Posted: Fri 21 Dec 2018 12:35
by MaximG
Please describe the task in more detail. What version of EntityDAC are you using in your project?

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

Posted: Sat 29 Dec 2018 06:14
by sglqh
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?

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

Posted: Thu 03 Jan 2019 12:25
by MaximG
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.