Hi, I create custom entity objects, a custom collections for the entity objects and a custom object that acts like a collection of the custom entity collections which I called EntitySet Object. The EntitySet is used to bind the entity collections to windows form bindingsource in design time. After 2 weeks of bloody coding and reading really "Helpfull" msdn docs, thanks to http://www.freeweb.hu/noiseehc/ finally I've managed to create the entityset and bind it to a bindingsource in design time. But Unfortunately, the bindingsource list shows 0 count, while the entitycollection itself shows 1 count. Please kindly help what's wrong with the code.
public TypedEntitySet()
{
entityCollectionsDescriptor = new EntityCollectionTypeDescriptorCollection();
entityCollectionsDescriptor.Add(this, "City", typeof(EntityCity));
entityCollectionsDescriptor.Add(this, "Shipment", typeof(EntityShipment));
}
public System.Collections.IList GetList()
{
return this.entityCollectionsDescriptor;
}
The EntityCollection itself simple a custom object thich inherits from BindingList<T>.
Thanks.