Ejemplo n.º 1
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();
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }