Esempio n. 1
0
        public override SqlStatement[] GetStatements(WorkUnitProcessingContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            // check...
            if (context.Dialect == null)
            {
                throw new InvalidOperationException("context.Dialect is null.");
            }
            return(SqlStatement.CreateStatements(context.Dialect.GetCreateForeignKeyStatement(this.ForeignKey)));
        }
        public override SqlStatement[] GetStatements(WorkUnitProcessingContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            // check...
            if (context.Dialect == null)
            {
                throw new InvalidOperationException("context.Dialect is null.");
            }

            return(SqlStatement.CreateStatements(context.Dialect.GetCreateDefaultConstraintStatement(this.Column, DefaultExpression)));
        }
Esempio n. 3
0
        public override SqlStatement[] GetStatements(WorkUnitProcessingContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            // check...
            if (context.Dialect == null)
            {
                throw new InvalidOperationException("context.Dialect is null.");
            }

            // run...
            if (Table == null)
            {
                throw new InvalidOperationException("Table is null.");
            }
            return(SqlStatement.CreateStatements(context.Dialect.GetCreateTableScript(this.Table, SqlTableScriptFlags.None)));
        }