is there is method to TEntityCollection from context

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
ma5sos
Posts: 3
Joined: Tue 14 May 2019 13:16

is there is method to TEntityCollection from context

Post by ma5sos » Sun 09 Jun 2019 12:59

how to get TEntityCollection from context when using code mapped entities it returns TEntityEnumerable or Genric Tlist
And Dataset source collection Does not Support TList It Support Ienumerable

ma5sos
Posts: 3
Joined: Tue 14 May 2019 13:16

Re: is there is method to TEntityCollection from context

Post by ma5sos » Sun 09 Jun 2019 18:09

i meant
is there is away to have collection of entities that is supported by entitydataset.sourcecollection property
context returns IEntityEnumerable and IObjectEnumerable and if used to list method it gets TList
but Tlist is not supported as source for entitydataset.sourcecollection
is there is workaround

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

Re: is there is method to TEntityCollection from context

Post by MaximG » Sat 22 Jun 2019 10:12

EntityDAC comes with a sample ([EntityDAC Demos folder]\EntityDemo\) that demonsrates the main features of our product, as well as how it works with collections as a datasource for TEntityDataSet. You can launch the EntityDemo and learn how to use that feature using EntityDACDemo\Working with EntityDataSet\Entity Collection to DataSet

Post Reply