EntityTable / EntityQuery how to find a record using a KeyField

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
abnerh69
Posts: 7
Joined: Tue 06 Jan 2015 15:58

EntityTable / EntityQuery how to find a record using a KeyField

Post by abnerh69 » Thu 15 Jan 2015 16:06

Hi,

Who can I find a record in a TEntityTable / TEntityQuery datasets using a primary key field?

Thanks

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

Re: EntityTable / EntityQuery how to find a record using a KeyField

Post by AlexP » Fri 16 Jan 2015 09:08

Hello,

Since TEntityDataSet is a descendant from TDataSet, you can use the Locate standard method to navigate to a required record.

Post Reply