Пример #1
0
 /// <summary>checkUserPermissions is set to false.</summary>
 public static void Delete <TEntity>(this IWritableRepository <TEntity> repository, params TEntity[] deleteIds)
     where TEntity : class
 {
     repository.Save(null, null, deleteIds, false);
 }
Пример #2
0
 public static void Delete <TEntity>(this IWritableRepository <TEntity> repository, IEnumerable <TEntity> deleteIds, bool checkUserPermissions = false)
     where TEntity : class
 {
     repository.Save(null, null, deleteIds, checkUserPermissions);
 }
Пример #3
0
 public static void Update <TEntity>(this IWritableRepository <TEntity> repository, IEnumerable <TEntity> updateNew, bool checkUserPermissions = false)
     where TEntity : class
 {
     repository.Save(null, updateNew, null, checkUserPermissions);
 }
Пример #4
0
 /// <summary>checkUserPermissions is set to false.</summary>
 public static void Update <TEntity>(this IWritableRepository <TEntity> repository, params TEntity[] updateNew)
     where TEntity : class
 {
     repository.Save(null, updateNew, null, false);
 }
Пример #5
0
 /// <summary>checkUserPermissions is set to false.</summary>
 public static void Insert <TEntity>(this IWritableRepository <TEntity> repository, params TEntity[] insertNew)
     where TEntity : class
 {
     repository.Save(insertNew, null, null, false);
 }