Пример #1
0
 public SqlConstraintExpression(SqlReferencesExpression sqlReferencesExpression, string constraintName = null, IReadOnlyList <string> columnNames = null, Expression defaultValue = null)
     : base(typeof(void))
 {
     this.ConstraintName       = constraintName;
     this.ReferencesExpression = sqlReferencesExpression;
     this.ColumnNames          = columnNames;
     this.DefaultValue         = defaultValue;
 }
Пример #2
0
        public SqlConstraintExpression ChangeReferences(SqlReferencesExpression referencesExpression)
        {
            if (ReferenceEquals(this.ReferencesExpression, referencesExpression))
            {
                return(this);
            }

            return(new SqlConstraintExpression(this.ConstraintType, referencesExpression, this.ConstraintName, this.ColumnNames, this.DefaultValue, this.ConstraintOptions, this.KeyOptions));
        }
Пример #3
0
 public SqlConstraintExpression(ConstraintType constraintType, SqlReferencesExpression sqlReferencesExpression = null, string constraintName = null, IReadOnlyList <string> columnNames = null, Expression defaultValue = null, object[] constraintOptions = null, object[] keyOptions = null)
     : base(typeof(void))
 {
     this.ConstraintType       = constraintType;
     this.ConstraintName       = constraintName;
     this.ReferencesExpression = sqlReferencesExpression;
     this.ColumnNames          = columnNames;
     this.DefaultValue         = defaultValue;
     this.ConstraintOptions    = constraintOptions;
     this.KeyOptions           = keyOptions;
 }