Page 1 of 1

is there is method to TEntityCollection from context

Posted: Sun 09 Jun 2019 12:59
by ma5sos
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

Re: is there is method to TEntityCollection from context

Posted: Sun 09 Jun 2019 18:09
by ma5sos
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

Re: is there is method to TEntityCollection from context

Posted: Sat 22 Jun 2019 10:12
by MaximG
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