Hi
I have generated an Editable Root Collection through cslagenfork. In windows forms, binding source's Remove() or RemoveCurrent() method is called to delete the current object. But some how the remove methods of the root collection are not being fired. I have put some logic in the remove methods to check referential integrity.
public new bool Remove(ColorEC item) {
if (!CanDeleteObject())
throw new System.Security.SecurityException("User not authorized to remove a ColorEC.");
ColorRIExistsCommand cmd = new ColorRIExistsCommand(item.NKey);
cmd = Csla.DataPortal.Execute<ColorRIExistsCommand>(cmd);
if (cmd.ColorExists)
throw new System.Exception("Related records exist. Can't delete record");
return base.Remove(item);
}