Ejemplo n.º 1
0
 public SqlBase(Type type, DbTableInfo tableInfo, SqlCache cache)
 {
     ModelType = type;
     TableInfo = tableInfo;
     Cache     = cache;
     TableName = GetTableName();
     if (Cache == null)
     {
         Cache = new SqlCache();
     }
 }
Ejemplo n.º 2
0
 public SelectProvider(DbTableInfo tableInfo, SqlCache cache)
     : base(typeof(T), tableInfo, cache)
 {
     Verb = "SELECT";
 }
Ejemplo n.º 3
0
 public DeleteProvider(DbTableInfo tableInfo, SqlCache cache)
     : base(typeof(T), tableInfo, cache)
 {
     Verb = "DELETE";
 }
Ejemplo n.º 4
0
 public InsertProvider(DbTableInfo tableInfo, SqlCache cache)
     : base(typeof(T), tableInfo, cache)
 {
     Verb = "INSERT";
 }
Ejemplo n.º 5
0
 public UpdateProvider(DbTableInfo tableInfo, SqlCache cache)
     : base(typeof(T), tableInfo, cache)
 {
     Verb = "UPDATE";
 }