EFIngresProvider/SqlGen/SqlWriter.cs
/// <summary>
/// Reset atBeginningofLine if we detect the newline string.
/// <see cref="SqlBuilder.AppendLine"/>
/// Add as many tabs as the value of indent if we are at the 
/// beginning of a line.
/// </summary>
/// <param name="value"></param>
Reset atBeginningofLine if we detect the newline string.

Add as many tabs as the value of indent if we are at the
beginning of a line.
Reset atBeginningofLine if we detect the newline string . Add as many tabs as the value of indent if we are at the beginning of a line .
public override void Write(string value)
        {
            if (value == "\r\n")
            {
                base.WriteLine();
                atBeginningOfLine = true;
            }
            else
            {
                if (atBeginningOfLine)
                {
                    if (IndentCount > 0)
                    {
                        base.Write(new string(' ', IndentCount * IndentSpaceCount));
                    }
                    atBeginningOfLine = false;
                }
                base.Write(value);
            }
        }
public override void Write ( string value ) { if ( value == " \r \n " ) { base . WriteLine ( ) ; atBeginningOfLine = true ; } else { if ( atBeginningOfLine ) { if ( IndentCount > 0 ) { base . Write ( new string ( ' ' , IndentCount * IndentSpaceCount ) ) ; } atBeginningOfLine = false ; } base . Write ( value ) ; } }
Reset atBeginningofLine if we detect the newline string.
Reset atBeginningofLine if we detect the newline string .
value
string
None