i have some questions when watching this tutorial.
i wonder when i overwrite methods, how do i know if i need to call the base method?
public CustomerCollection(IEnumerable<Customer> customers, OMSEntities context) : base(customers)
also why do i need to do
protected override void InsertItem(int index, Customer cust)
{
this.context.AddToCustomers(cust);
base.InsertItem(index, cust);
}
protected override void RemoveItem(int index)
{
this.context.DeleteObject(this[index]);
base.RemoveItem(index);
}
what does the 2 lines in each method do? and why the need for such similar method. if i overwrite methods for delete and add why not update too?