It's built like that so you check if it's nullable or not. You can't always guarantee that a connection string or option is not null, you might miss a spelling it or might be not defined.
oks will do it , currently went with this public static string NewConnectionString => _config?.GetConnectionString("jupDb") ?? "Fallbackstring";
Обсуждают сегодня