コード例 #1
0
        public ColumnBuilder NotNullOnConflict(SQLiteConflictType type)
        {
            NotNull();
            OnNotNullConflict(type);

            return(this);
        }
コード例 #2
0
        public ColumnBuilder UniqueOnConflict(SQLiteConflictType type)
        {
            Unique();
            OnUniqueConflict(type);

            return(this);
        }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
        public ColumnBuilder OnNotNullConflict(SQLiteConflictType type)
        {
            _column.NotNullConflict = type;

            return(this);
        }
コード例 #5
0
        public ColumnBuilder OnUniqueConflict(SQLiteConflictType type)
        {
            _column.UniqueConflict = type;

            return(this);
        }
コード例 #6
0
        public PrimaryKeyBuilder OnConflict(SQLiteConflictType type)
        {
            _table.PrimaryKey.ConflictType = type;

            return(this);
        }