public ColumnBuilder NotNullOnConflict(SQLiteConflictType type) { NotNull(); OnNotNullConflict(type); return(this); }
public ColumnBuilder UniqueOnConflict(SQLiteConflictType type) { Unique(); OnUniqueConflict(type); return(this); }
private string GetConflictString(SQLiteConflictType type) { switch (type) { case SQLiteConflictType.Rollback: return("ROLLBACK"); case SQLiteConflictType.Abort: return("ABORT"); case SQLiteConflictType.Fail: return("FAIL"); case SQLiteConflictType.Ignore: return("IGNORE"); case SQLiteConflictType.Replace: return("REPLACE"); default: throw new NotImplementedException(); } }
public ColumnBuilder OnNotNullConflict(SQLiteConflictType type) { _column.NotNullConflict = type; return(this); }
public ColumnBuilder OnUniqueConflict(SQLiteConflictType type) { _column.UniqueConflict = type; return(this); }
public PrimaryKeyBuilder OnConflict(SQLiteConflictType type) { _table.PrimaryKey.ConflictType = type; return(this); }