System.Data.Entity/System/Data/SqlClient/SqlGen/OptionalColumn.cs
/// <summary>
/// Writes that fragment that represents the optional column 
/// if the usage manager says it is used.
/// </summary>
/// <param name="writer"></param>
/// <param name="sqlGenerator"></param>
Writes that fragment that represents the optional column
if the usage manager says it is used.
Writes that fragment that represents the optional column if the usage manager says it is used .
public bool WriteSqlIfUsed(SqlWriter writer, SqlGenerator sqlGenerator, string separator)
        {
            if (m_usageManager.IsUsed(m_symbol))
            {
                writer.Write(separator);
                m_builder.WriteSql(writer, sqlGenerator);
                return true;
            }
            return false;
        }
public bool WriteSqlIfUsed ( SqlWriter writer , SqlGenerator sqlGenerator , string separator ) { if ( m_usageManager . IsUsed ( m_symbol ) ) { writer . Write ( separator ) ; m_builder . WriteSql ( writer , sqlGenerator ) ; return true ; } return false ; }
Writes that fragment that represents the optional column
if the usage manager says it is used.
Writes that fragment that represents the optional column if the usage manager says it is used .
writer
SqlWriter
None
sqlGenerator
SqlGenerator
None
separator
string