This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Since 2 years, I use in a lot of places in my code the EntityCollection to build manually list of items. Now, when I try to add item in the list, the items seems not be added. I checked in your code and see that by default, the IsLazy property is true and when this property is true, the items are not added to the list but instead, in a temporary list. To correct my problem having code working like in previous months, I have to set the IsLazy property to false. EntityCollection I use the version 4.0.1612.21533 and I think the problem have been introduced since a version in the last two weeks. Have you make any changes? Is my solution is good? Have you any recommendations on how to work with EntityCollection manually (or is it bad idea to work with your EntityCollection)? Thank you. |
|
|
Yes there was a change in behavior about a month or two ago as you have indicated (items are not immediately added to the EntityCollection if it is lazy, but added to a deferred list) so that would do it :) The code you have listed should work just fine, but out of interest why are you using EntityCollection over say List<TEntity>()? We dont really intend EntityCollection to be used for general collection handling.
|
|