public static int Count( EntityApi api, string tableName) { return(Sql .CreateSelect(tableName) .Count(api)); }
public static IQueryable <IEntity> All( EntityApi api, string tableName) { return(Sql .CreateSelect(tableName) .Query(api)); }
public static IEntity Get( EntityApi api, string tableName, params Any[] conditions) { return(Sql .CreateSelect(tableName) .Where(conditions) .QueryFirst(api)); }
public static bool Exists( EntityApi api, string tableName, params Any[] conditions) { return(Sql .CreateSelect(tableName) .Where(conditions) .Exists(api)); }
public DataResult Remove(EntityApi api) { return(api.Delete(this)); }
public DataResult Modify(EntityApi api) { return(api.Update(this)); }
public DataResult Add(EntityApi api) { return(api.Insert(this)); }