Skip to content

Commit 0226105

Browse files
committed
Updates for upstream refactors
Updates for upstream refactors
1 parent ab5e1fa commit 0226105

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Serilog.Sinks.MSSqlServer/Configuration/Implementations/System.Configuration/ColumnConfig.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 Serilog Contributors
1+
// Copyright 2015 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -43,8 +43,8 @@ public virtual string ColumnName
4343
[ConfigurationProperty("PropertyName")]
4444
public virtual string PropertyName
4545
{
46-
get { return (string)this["PropertyName"]; }
47-
set { this["PropertyName"] = value; }
46+
get { return (string)this[nameof(PropertyName)]; }
47+
set { this[nameof(PropertyName)] = value; }
4848
}
4949

5050
[ConfigurationProperty("DataType")]

src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/MSSqlServerSinkTraits.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Serilog Contributors
1+
// Copyright 2020 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -223,17 +223,17 @@ private string ConvertPropertiesToXmlStructure(IEnumerable<KeyValuePair<string,
223223
/// Mapping values from properties which have a corresponding data row.
224224
/// Matching is done based on Column name and property key
225225
/// Standard columns are not mapped
226-
/// </summary>
226+
/// </summary>
227227
/// <param name="properties"></param>
228228
private IEnumerable<KeyValuePair<string, object>> ConvertPropertiesToColumn(IReadOnlyDictionary<string, LogEventPropertyValue> properties)
229229
{
230230
foreach (var property in properties)
231231
{
232-
var additionalColumn = columnOptions
232+
var additionalColumn = ColumnOptions
233233
.AdditionalColumns
234234
.FirstOrDefault(ac => ac.PropertyName == property.Key);
235235

236-
if (additionalColumn == null || standardColumnNames.Contains(property.Key))
236+
if (additionalColumn == null || StandardColumnNames.Contains(property.Key))
237237
continue;
238238

239239
var columnName = additionalColumn.ColumnName;

0 commit comments

Comments
 (0)