예제 #1
0
 public List <T> ExecuteQuery <T>(TableMapping map)
 {
     return(ExecuteDeferredQuery <T>(map).ToList());
 }
예제 #2
0
 public static NotNullConstraintViolationException New(SQLiteException exception, TableMapping mapping, object obj)
 {
     return(new NotNullConstraintViolationException(exception.Result, exception.Message, mapping, obj));
 }
예제 #3
0
 public static NotNullConstraintViolationException New(SQLite3.Result r, string message, TableMapping mapping, object obj)
 {
     return(new NotNullConstraintViolationException(r, message, mapping, obj));
 }
예제 #4
0
 protected NotNullConstraintViolationException(SQLite3.Result r, string message, TableMapping mapping, object obj)
     : base(r, message)
 {
     if (mapping != null && obj != null)
     {
         this.Columns = from c in mapping.Columns
                        where c.IsNullable == false && c.GetValue(obj) == null
                        select c;
     }
 }
예제 #5
0
 TableQuery(SQLiteConnection conn, TableMapping table)
 {
     Connection = conn;
     Table      = table;
 }
예제 #6
0
 public TableQuery(SQLiteConnection conn)
 {
     Connection = conn;
     Table      = Connection.GetMapping(typeof(T));
 }