I discovered the following code in the CustomersPageController:
/// <summary>
/// Tell the BindingSource how to add new objects.
/// </summary>
/// <remarks>
/// A BindingSource has its own (peculiar) way of managing creation of new objects.
/// Could ignore it and use traditional methods but some controls (e.g., grids)
/// understand the BindingSource protocol and it conveniently adds the new
/// items to its list so we go with it here.
/// </remarks>
protected override void EnableMainBindingSourceAddNew()
{
//MainBindingSource.AllowNew = CustomerMaster.EntityCreator.AllowCreate;
//MainBindingSource.AddingNew += BindingSourceAddingNewHandler;
}
This seems like the place to go in order to employ the custom Create method of a specific entity. Should I place my CustomerMaster.Create() call here, or is there another method that needs to be overridden for best results?
Thanks,
Bill