示例#1
0
        // no statement building
#else
        public override bool BuildStatement(DBStatementBuilder builder)
        {
            builder.BeginDropStatement(DBSchemaTypes.View, this.ViewOwner, this.ViewName, this.CheckExists == DBExistState.Exists);
            builder.EndDrop(DBSchemaTypes.View, this.CheckExists == DBExistState.Exists);

            return(true);
        }
        // no statement building
#else
        public override bool BuildStatement(DBStatementBuilder builder)
        {
            builder.BeginDropStatement(DBSchemaTypes.StoredProcedure, this.SprocOwner, this.SprocName, this.CheckExists == DBExistState.Exists);
            builder.EndDrop(DBSchemaTypes.Table, this.CheckExists == DBExistState.Exists);

            return(true);
        }
        // no statement building
#else
        public override bool BuildStatement(DBStatementBuilder builder, bool isInorNot = false)
        {
            builder.BeginDropStatement(DBSchemaTypes.Table, this.TableOwner, this.TableName, this.CheckExists == DBExistState.Exists);
            builder.EndDrop(DBSchemaTypes.Table, this.CheckExists == DBExistState.Exists);

            return(true);
        }
示例#4
0
        // no statement building
#else
        public override bool BuildStatement(DBStatementBuilder builder)
        {
            builder.BeginDropStatement(DBSchemaTypes.Index, this.Owner, this.Name, this.CheckExists == DBExistState.Exists);
            if (!string.IsNullOrEmpty(this.TableName))
            {
                builder.BeginReferenceOn();
                builder.WriteSourceTable(this.TableOwner, this.TableName, string.Empty);
                builder.EndReferenceOn();
            }
            builder.EndDrop(DBSchemaTypes.Index, this.CheckExists == DBExistState.Exists);
            return(true);
        }