Beispiel #1
0
 /// <summary>
 /// Deletes the row with the associated children rows.
 /// </summary>
 /// <typeparam name="T">The type of the row object.</typeparam>
 /// <param name="row">The row to delete.</param>
 /// <param name="maxLevels">Specifies the maximum number of cascading levels that can be included in the deletion. If more levels than maxLevels are needed to complete the cascade deletion, an exception is thrown.</param>
 public void DeleteCascadeGo <T>(T row, int maxLevels = 5)
     where T : DbRow
 {
     PublicInvoker.Call(Assembly.GetCallingAssembly(), (ca) =>
                        Crud.DeleteCascadeGo <T>(ca, row, maxLevels, this));
 }