<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="10.0.1-dev-00193" />

Serilog.Sinks.MSSqlServer.SqlDataTypes

public static class SqlDataTypes
Helpers for validating and converting SQL data types and the corresponding .NET types used by the DataColumn class.
public static readonly List<SqlDbType> ColumnstoreCompatible

Clustered Columnstore Indexes only support a subset of the available SQL column types.

public static readonly List<SqlDbType> DataLengthRequired

The SQL column types which require a non-zero DataLength property.

public const SqlDbType NotSupported = 23

SqlDbType doesn't have anything like "None" so we indicate an unsupported type by referencing a type we can guarantee the rest of the sink will never recognize.

public static readonly Dictionary<Type, SqlDbType> ReverseTypeMap

A collection keyed on the DataColumn .NET types with values representing the default SqlDbType enum. This exists for backwards-compatibility reasons since all configuration based on DataColumn has been marked Obsolete and will be removed in a future release.

public static readonly Dictionary<SqlDbType, Type> SystemTypeMap

A collection keyed on the SqlDbType enum with values representing the equivalent DataColumn .NET type.

SQL column types for supported strings

public static bool TryParseIfSupported(string requestedType, out SqlDbType supportedSqlDbType)

Like Enum.TryParse for SqlDbType but it also validates against the SqlTypeToSystemType list, returning false if the requested SQL type is not supported by this sink.