I am currently learning C# .NET Core 7 with MS SQL and Azure
from this Udemy Course
Here I go over variables, data structures, operators, conditionals, loops, methods, and scope.
Here I go over intermediate theory and connect to a SQL database in Azure Data Studios. I start by creating a database schema in Azure Data Studios (Section03 - DotNetCourseDatabase.sql).
I make a Microsoft SQL database connection to write to the database and run queries using two different methods:
- The Dapper Method
- The Microsoft Framework Entity Method
I also write SQL code to a text file (.txt).
I then deal with JSON files (.json) using two different methods to serialize & deserialize:
- Newtonsofts Json.NET Method
- Microsoft's System.Text.Json Method
I also deal with JSON files (.json) written in snakecase naming convention with two different methods:
- Mapper Method
- Tapping into JSON Property Attribute Method
Windows Powershell Terminal Package Install Requirements:
- dotnet add package Dapper
- dotnet add package microsoft.data.sqlclient
- dotnet add package microsoft.entityframeworkcore
- dotnet add package microsoft.entityframeworkcore.sqlserver
- dotnet add package microsoft.Extensions.Configuration
- dotnet add package microsoft.Extensions.Configuration.Json
- dotnet restore
- dotnet add package Newtonsoft.Json
- dotnet add package Automapper
I ran a mock Microsoft Transact-SQL (TSQL) database design schema in Azure Data Studio.
Project 1 - In this project, I inject JSON data into
a MS SQL database by using the dapper mapper method.