protected override Int32 OnDelete() { Teams?.Delete(true); UserTeam.FindAllByTeamID(ID).Delete(true); Repositories?.Delete(true); Repository.FindAllByOwnerID(ID).Delete(); AuthorizationLog.FindAllByUserID(ID).Delete(); return(base.OnDelete()); }
protected override Int32 OnDelete() { (Teams as IEntityList)?.Delete(true); (Repositories as IEntityList)?.Delete(true); (SshKeys as IEntityList)?.Delete(true); Repository.FindAllByOwnerID(ID).Delete(); AuthorizationLog.FindAllByUserID(ID).Delete(); return(base.OnDelete()); }