public static EntityBase FirstOrDefault(Type t, string dbAccount, string entityId) { var db = DbTable.AddTableType(t); return(db.FirstOrDefault <EntityBase>(dbAccount, entityId, false)); }
public static int Count <DataType>(Predicate <DataType> pred = null, string dbAccount = null) where DataType : EntityBase { var db = DbTable.AddTableType(typeof(DataType)); return(db.Count <DataType>(pred, dbAccount)); }