Пример #1
0
 public static string SqlLiteralDate(this DateTime?d, SqlDateOptions options) => d.HasValue ? d.Value.SqlLiteralDate(options) : SqlOptions.SqlNullString;
Пример #2
0
 public static string SqlLiteralDate(this DateTime d, SqlDateOptions options) => d.SqlLiteralDate(options.LiteralPrefix, options.LiteralSuffix);