Home > Software engineering >  ASP .Net core 3.1 connection string
ASP .Net core 3.1 connection string

Time:06-21

what is the correct way do define my connection with an already existing database on a server with SQL server authentication?

CodePudding user response:

Define in appsetting.json and using "Options pattern" we can get Connection String.

Refer below link for "Options pattern" https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-6.0

  • Related