Похожие чаты

How to handle them properly, as here i know it

cant bbe null as i have those props in the json ? it would be helpful if there is a lead to articles about it

2 ответов

3 просмотра

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.

Jass- Автор вопроса
Adnan Al_Beda
It's built like that so you check if it's nullable...

oks will do it , currently went with this public static string NewConnectionString => _config?.GetConnectionString("jupDb") ?? "Fallbackstring";

Похожие вопросы

Обсуждают сегодня

Карта сайта