Пример #1
0
 public static Action <T, TConnection, int> GetFastSetter <T, TConnection>(SqlBase sql, Column column)
 {
     if (sql is SqlServer.SQLServerConnection)
     {
         return(SqlServer.FastColumnSetter.GetFastSetter <T>(column) as Action <T, TConnection, int>);
     }
     else if (sql is Sqlite.SQLiteConnection con)
     {
         return(Sqlite.FastColumnSetter.GetFastSetter <T>(conn: con, column: column) as Action <T, TConnection, int>);
     }
     return(null);
 }
Пример #2
0
 public TableQuery(SqlBase conn)
 {
     Connection = conn;
     Table      = Connection.GetMapping(typeof(T));
 }
Пример #3
0
 protected TableQuery(SqlBase conn, TableMapping table)
 {
     Connection = conn;
     Table      = table;
 }