Example #1
0
        public static EntityBase FirstOrDefault(Type t, string dbAccount, string entityId)
        {
            var db = DbTable.AddTableType(t);

            return(db.FirstOrDefault <EntityBase>(dbAccount, entityId, false));
        }
Example #2
0
        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));
        }