public static bool Delete <T>(this T entity) where T : IEntity { return(Ir.DataSet <T>().Delete(entity)); }
public static bool Update <T>(this T entity, params Expression <Func <T, object> >[] relationsToSave) where T : IEntity { return(Ir.DataSet <T>().Update(entity, relationsToSave)); }
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)); }
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)); }