hi
sql is -> select * from Emp
use sqlite ->demo.db3
how to use EntityQuery
EntityQuery1.LINQ.Text := 'Linq.From(Emp).Select'; -> can not use
Thanks
billyChou
how to use EntityQuery
Re: how to use EntityQuery
The fundementals of working with EntityCollection are covered in our docs: https://www.devart.com/entitydac/docs/c ... y_list.htm
EntityDAC is distributed with an example ( [EntityDAC Demo folder]\Demos\EntityDemo\ ) that explains how to work with LINQ queries.
A query for retrieving all rows from the emp table using EntityQuery will look like this:
EntityDAC is distributed with an example ( [EntityDAC Demo folder]\Demos\EntityDemo\ ) that explains how to work with LINQ queries.
A query for retrieving all rows from the emp table using EntityQuery will look like this:
Code: Select all
EntityQuery.LINQ.Text := 'from e in emp';
-
- Posts: 1
- Joined: Sun 11 Apr 2010 02:07
Re: how to use EntityQuery
Thanks is ok
code share
code share
Code: Select all
procedure TMain.Button8Click(Sender: TObject);
var
DemoContext : TDemoContext;
e: IEmpExpression;
Query: ILinqQueryable;
begin
DemoContext := Demo.Context.TDemoContext.Create(nil);
e := DemoContext.Emp;
EntityQuery1.LINQ.Text := 'from e in emp';
EntityQuery1.Active := True;
end;
Re: how to use EntityQuery
Please don't hesitate to contact us with questions concerning our product usage.
Re: how to use EntityQuery
Hi,
you did answer that docu is here: https://www.devart.com/entitydac/docs/c ... y_list.htm
and example was EntityQuery.LINQ.Text := 'from e in emp';
Nowhere in documentation is this example and nowhere i found syntax
for property TEntityQuery.LINQ.Text , eg. order by etc.
LINQ syntax can not be used there. There are some documentation TEntityQuery.LINQ.Text?
Thanks Vojslav
you did answer that docu is here: https://www.devart.com/entitydac/docs/c ... y_list.htm
and example was EntityQuery.LINQ.Text := 'from e in emp';
Nowhere in documentation is this example and nowhere i found syntax
for property TEntityQuery.LINQ.Text , eg. order by etc.
LINQ syntax can not be used there. There are some documentation TEntityQuery.LINQ.Text?
Thanks Vojslav
Re: how to use EntityQuery
Refer to the official documentation for more information about constructing LINQ queries: https://docs.microsoft.com/en-us/dotnet ... using-linq