Creating Database with Entity Framework Core- Part 3 | - ASP.NET CORE 3 | Angular 10 | Bootstrap 4

Опубликовано: 30 Сентябрь 2024
на канале: Tech Howdy
2,982
48

This is Part-3 of the video tutorial, where we will learn how to create our application database using EntityFrameworkCore. If you are not familiar with Entity Framework, I recommend you to read the documentation from Microsoft.

Creating Database with Entity Framework Core- Part 1
   • Creating Database with Entity Framewo...  

Creating Database with Entity Framework Core- Part 2
   • Creating Database with Entity Framewo...  

Creating Database with Entity Framework Core- Part 3
   • Creating Database with Entity Framewo...  

Entity Framework (EF) Core is a lightweight, extensible, open source and cross-platform version of the popular Entity Framework data access technology.
Fore More Info : https://docs.microsoft.com/en-us/ef/c...

----Video Number : 9
----BLOG
https://techhowdy.com/

----What would you be Learning :
* Creating Context Classes for Application Database and for Data Protection Keys Database
* Initializing you database with Admin and App user
* Creating Migrations and Ensuring Database is always created before application runs
* Managing Database with Data Service and Creating a Functional Service to Initialize Database
* Adding Connection Strings and Injecting the required Dependencies in Application pipeline.
* Setting up the AspNetCore Identity Options for Membership System

---Purpose of the two Databases
Application Db - to store our Application Data
Data Protection Db - to store Data Protection Keys (Which can be used to decrypt data)
Fore More Info : https://docs.microsoft.com/en-us/aspn...

======FOR SOURCE CODE USE ANY OF THE FOLLOWING REPO LINKS=====
**SOURCE CODE DEV OPS REPO**
https://dev.azure.com/Techhowdy/_git/...
**SOURCE CODE GITHUB LINK**
https://github.com/techhowdy/CMS_CORE_NG

---NUGET PACKAGES

---DATA SERVICE
* Microsoft.AspNetCore.DataProtection.EntityFrameworkCore
* Microsoft.AspNetCore.Identity.EntityFrameworkCore
* Microsoft.EntityFrameworkCore.Design
* Microsoft.EntityFrameworkCore.Tools

---DATA SERVICE
* Microsoft.AspNetCore.Identity
* Microsoft.AspNetCore.Identity.EntityFrameworkCore

-- COMMAND TO INSTALL DOTNET TOOL
dotnet tool install --global dotnet-ef
dotnet ef migrations add InitialCreate --context ApplicationDbContext
dotnet ef migrations add InitialCreate --context DataProtectionKeysContext


--- HOW TO CREATE CONNECTION STRINGS
https://www.connectionstrings.com/sql...

--- TAGS
Creating Database With EF CORE, EntityFrameworkCore Tutorial, Initialize Database with EF Core, Entity Framework Core Asp.Net Core, How to Create Database with Entity Framework,
Code First Entity Framework, Creating Migrations, Entity Framework Command, Entity Framework Command to Create Database, Asp.Net Core Tutorial, CMS Application tutorial, Angular 10,
Asp.net core angular 10, entity framework core angular 10, Applciation Db Context, Data Protection Keys, Implementing Data Protection