Beispiel #1
0
 public static bool Delete <T>(this T entity) where T : IEntity
 {
     return(Ir.DataSet <T>().Delete(entity));
 }
Beispiel #2
0
 public static bool Update <T>(this T entity, params Expression <Func <T, object> >[] relationsToSave) where T : IEntity
 {
     return(Ir.DataSet <T>().Update(entity, relationsToSave));
 }
Beispiel #3
0
 public static T Load <T>(this T obj, object key, params Expression <Func <T, object> >[] relationsToLoad) where T : IEntity
 {
     return(Ir.DataSet <T>().Load(obj, key, relationsToLoad));
 }
Beispiel #4
0
 public static bool Insert <T>(this T entity, params Expression <Func <T, object> >[] relationsToSave) where T : IEntity
 {
     return(Ir.DataSet <T>().Insert(entity, deferSave: null, relationsToSave: relationsToSave));
 }