Skip to main content
typo
Source Link
carloswm85
  • 2.7k
  • 1
  • 28
  • 35

##Update

Update

##Update

Update

Points to existing method in .Net 6
Source Link
user276648
  • 6.4k
  • 8
  • 64
  • 88

It's now easy to get any settings from the ConfigurationManager by calling the GetValueGetValue<type>(string key) extension method. You can also use Index(string key) to return a string. See this answer.

It's now easy to get any settings from the ConfigurationManager by calling the GetValue(string key) extension method. See this answer.

It's now easy to get any settings from the ConfigurationManager by calling the GetValue<type>(string key) extension method. You can also use Index(string key) to return a string. See this answer.

Points to existing method in .Net 6
Source Link
user276648
  • 6.4k
  • 8
  • 64
  • 88

Update .Net 6

It's now easy to get any settings from the ConfigurationManager by calling the GetValue(string key) extension method. See this answer.


You must build a configuration in your main method, get the section and bind it to your model. No way around it.

You must build a configuration in your main method, get the section and bind it to your model. No way around it.

Update .Net 6

It's now easy to get any settings from the ConfigurationManager by calling the GetValue(string key) extension method. See this answer.


You must build a configuration in your main method, get the section and bind it to your model. No way around it.

Updated for ASP.NET Core 2.0
Source Link
Tseng
  • 64.5k
  • 18
  • 200
  • 215
Loading
deleted 7 characters in body
Source Link
Tseng
  • 64.5k
  • 18
  • 200
  • 215
Loading
Source Link
Tseng
  • 64.5k
  • 18
  • 200
  • 215
Loading