src/Shared/EntityFramework.SqlServer/SqlGen/OptionalColumn.cs
// <summary>
// Writes that fragment that represents the optional column
// if the usage manager says it is used.
// </summary>
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
sqlGenerator
SqlGenerator
separator
string