SetOnOffStatement

We found 10 examples in language CSharp for this search. You will see 11 fragments of code.
#pragma warning disable SA1107,SA1127,SA1128,SA1402,SA1516,SA1515,SA1600

namespace OfaSchlupfer.MSSQLReflection.AST {
    using ScriptDom = Microsoft.SqlServer.TransactSql.ScriptDom;
    [System.Serializable]
    [System.Diagnostics.DebuggerNonUserCode]
    public abstract class SetOnOffStatement : SqlStatement {
        public SetOnOffStatement() : base() { }
        public SetOnOffStatement(ScriptDom.SetOnOffStatement src) : base(src) {
            this.IsOn = src.IsOn;
        }
        public bool IsOn;
    }
}

////This file was generated 6/24/2017 12:42:30 AM
using System;
using System.Collections.Generic;

namespace SqlT.SqlTDom
{
    [Serializable()]
    public abstract class SetOnOffStatement : TSqlStatement, ISqlTDomStatement
    {
        public bool IsOn
        {
            get;
            set;
        }
    }
}

////This file was generated 6/24/2017 12:42:30 AM
using System;
using System.Collections.Generic;

namespace SqlT.SqlTDom
{
    [Serializable()]
    public class SetOffsetsStatement : SetOnOffStatement, ISqlTDomStatement
    {
        public SetOffsets Options
        {
            get;
            set;
        }
    }
}

////This file was generated 6/24/2017 12:42:30 AM
using System;
using System.Collections.Generic;

namespace SqlT.SqlTDom
{
    [Serializable()]
    public class PredicateSetStatement : SetOnOffStatement, ISqlTDomStatement
    {
        public SetOptions Options
        {
            get;
            set;
        }
    }
}

////This file was generated 6/24/2017 12:42:30 AM
using System;
using System.Collections.Generic;

namespace SqlT.SqlTDom
{
    [Serializable()]
    public class SetStatisticsStatement : SetOnOffStatement, ISqlTDomStatement
    {
        public SetStatisticsOptions Options
        {
            get;
            set;
        }
    }
}

////This file was generated 6/24/2017 12:42:30 AM
using System;
using System.Collections.Generic;

namespace SqlT.SqlTDom
{
    [Serializable()]
    public class SetIdentityInsertStatement : SetOnOffStatement, ISqlTDomStatement
    {
        public SchemaObjectName Table
        {
            get;
            set;
        }
    }
}


        private static ISqlString BuildSetStatement(SetOnOffStatement statement, IOnOffOptions options)
        {
            return statement.IsOn ? options.On() : options.Off();
        }

        public override void Accept(SqlFragmentVisitor visitor) => visitor?.ExplicitVisit(this);

        public override void Accept(SqlFragmentVisitor visitor) => visitor?.ExplicitVisit(this);

        public override void Accept(SqlFragmentVisitor visitor) => visitor?.ExplicitVisit(this);
        public override void AcceptChildren(SqlFragmentVisitor visitor) {
            this.Table?.Accept(visitor);
            base.AcceptChildren(visitor);
        }

Microsoft.SqlServer.TransactSql.ScriptDom.SetOnOffStatement : TSqlStatement

Methods :

public Boolean get_IsOn()
public Void set_IsOn(Boolean value = )
public Void AcceptChildren(TSqlFragmentVisitor visitor = )
public Void Accept(TSqlFragmentVisitor visitor = )
public Int32 get_StartOffset()
public Int32 get_FragmentLength()
public Int32 get_StartLine()
public Int32 get_StartColumn()
public Int32 get_FirstTokenIndex()
public Void set_FirstTokenIndex(Int32 value = )
public Int32 get_LastTokenIndex()
public Void set_LastTokenIndex(Int32 value = )
public IList<TSqlParserToken> get_ScriptTokenStream()
public Void set_ScriptTokenStream(IList<TSqlParserToken> value = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()