I want to add en remove entities from an entity collection of an other entity. I use the following line of code to adde entities en this works fine, my entity is added en the relation is created in the database:
((ShopEntity)this.CurrentData.Detail).ShopSegments.Add(new ShopSegmentEntity() { SegmentType = segmentType });
To remove an item i use the following line of code, and this doesn't work:
((ShopEntity)this.CurrentData.Detail).ShopSegments.RemoveAt(i);
How can i remove an item from the collection?
Kind regards,
Dimitri sturm