protected override string ConstraintWriter()
        {
            var sb = new StringBuilder();
            var constraintWriter = new ConstraintWriter(Table);
            constraintWriter.IncludeSchema = IncludeSchema;

            constraintWriter.CheckConstraintExcluder = ExcludeCheckConstraint;
            constraintWriter.TranslateCheckConstraint = TranslateCheckExpression;
            sb.AppendLine(constraintWriter.WriteTableConstraints());
            return sb.ToString();
        }
示例#2
0
        protected override string ConstraintWriter()
        {
            var sb = new StringBuilder();
            var constraintWriter = new ConstraintWriter(Table);

            constraintWriter.IncludeSchema = IncludeSchema;

            constraintWriter.CheckConstraintExcluder  = ExcludeCheckConstraint;
            constraintWriter.TranslateCheckConstraint = TranslateCheckExpression;
            sb.AppendLine(constraintWriter.WriteTableConstraints());
            return(sb.ToString());
        }
示例#3
0
        protected override string ConstraintWriter()
        {
            var sb = new StringBuilder();
            var constraintWriter = new ConstraintWriter(Table)
            {
                IncludeSchema            = IncludeSchema,
                CheckConstraintExcluder  = ExcludeCheckConstraint,
                TranslateCheckConstraint = TranslateCheckExpression,
                EscapeNames = EscapeNames
            };

            sb.AppendLine(constraintWriter.WriteTableConstraints());
            return(sb.ToString());
        }