src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/MSSqlServerSinkTraits.cs
/// <summary>Gets a list of the column names paired with their values to emit for the specified <paramref name="logEvent"/>.</summary>
/// <param name="logEvent">The log event to emit.</param>
/// <returns>
/// A list of mappings between column names and values to emit to the database for the specified <paramref name="logEvent"/>.
/// </returns>
Gets a list of the column names paired with their values to emit for the specified .
Gets a list of the column names paired with their values to emit for the specified .
public IEnumerable<KeyValuePair<string, object>> GetColumnsAndValues(LogEvent logEvent)
        {
            foreach (var column in ColumnOptions.Store)
            {
                if (column != StandardColumn.Id)
                    yield return GetStandardColumnNameAndValue(column, logEvent);
            }
            if (ColumnOptions.AdditionalColumns != null)
            {
                foreach (var columnValuePair in ConvertPropertiesToColumn(logEvent.Properties))
                    yield return columnValuePair;
            }
        }
public IEnumerable < KeyValuePair < string , object > > GetColumnsAndValues ( LogEvent logEvent ) { foreach ( var column in ColumnOptions . Store ) { if ( column != StandardColumn . Id ) yield return GetStandardColumnNameAndValue ( column , logEvent ) ; } if ( ColumnOptions . AdditionalColumns != null ) { foreach ( var columnValuePair in ConvertPropertiesToColumn ( logEvent . Properties ) ) yield return columnValuePair ; } }
Gets a list of the column names paired with their values to emit for the specified .
Gets a list of the column names paired with their values to emit for the specified .
// skip Id (auto-incrementing identity)
A list of mappings between column names and values to emit to the database for the specified .
A list of mappings between column names and values to emit to the database for the specified .
logEvent
LogEvent
The log event to emit.
The log event to emit .