Author: Neil Harvey
Provides boilerplate code that explores multiple different techniques for querying a SQL Server database. This project is dependent upon projects CAHealthFacilityDBLoad and NPPES-Data-Load.
For more information on the DB access methods explored in this project see Entity Framework Documentation and ADO.NET Options Guidelines .
- Build a set of queries that demonstrates and provides a quick easy way to get started with different Microsoft DB access methods for querying SQL Server.
- Use data from the real world that is publicly available and will stress these DB access methods.
- Use a .Net Core 3.1 console application adhering to Microsoft's frameworks for dependency injection, host configuration, managing services, etc..
-
ConsoleApplication.cs
- This class contains all of the queries as separate methods. Simply undocument the invocations in the run() method as desired.
-
Program.cs
- Contains the Main() method. Sets up the application container, services, logging, dependency injection, configuration, etc.. Please note that this application uses the Secret Manager tool to hide the database credentials. See Safe storage of app secrets in development in ASP.NET Core