#how #dotnet #aspdotnetcore
✍ Learn the basics of .NET Core (.NET 6) and then build a simple CRUD application with MVC and Entity Framework core code first in these complete tutorials.
💻 Code: https://github.com/shahedbd/DotNet6Fu...
✅ Audit Trail in ASP.NET Core MVC Project | Entity Framework Core | Code First | MSSQL | MySQL
• Audit Trail in ASP.NET Core MVC Proje...
✅ ASP .NET Core | Database Connection | Entity Framework Core | Code First | MSSQL
• ASP .NET Core | Database Connection |...
✅ Business ERP Solution / Product / POS / Company Management | ASP.NET Core | EF Core | .NET Core 5.0
• Video
✅ Pharmacy & Hospital Management System | ASP.NET Core | EF Core
• Pharmacy & Hospital Management System...
✅ User Management, ASP.NET Core 5.0, Identity Core, Entity Framework Code First | JWT Authentication
• User Management, ASP.NET Core 6.0, Id...
Summary:
.NET Core 6.0 Project
MSSQL Database connection
Entity Framework Core
Code First
CRUD Operation
So, Let's create the project step by step:
Create Project: VS 2022
Add NuGet dependency
1. Install-Package Microsoft.EntityFrameworkCore -Version 6.0.6
2. Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 6.0.6
3. Install-Package Microsoft.EntityFrameworkCore.Tools -Version 6.0.6
DB connection
"ConnectionStrings": {
"DefaultConnectionMSSQLNoCred": "Server=DEVSTATION\\MSSQLSERVER2017;Database=BusinessERP;Trusted_Connection=True;MultipleActiveResultSets=true"
},
Run migration
add-migration InitialCreate
update-database
Categories: CRUD
1. Create Model: Database Table
add int DB Context:
public DbSet Categories Categories { get; set; }
2. Create View Model: For Display data in UI
Plus: Mapping
3. Create a Controller
4. Create a View
5. Create JS for View
So thank you for watching the full tutorial on ASP.NET core 6.0
We have learned:
Create a project in VS 2022
Connect DB: MSSQL
EF Core Code First
Full CRUD Operation
Please do like us and share your feedback in the comment section.
Thanks for watching!
Ref:
https://github.com/shahedbd/DBConnect...
Music: bensound and google music lib
Watch video Learn ASP.NET Core MVC | .NET 6 | Full Course for Beginner | EF Core | MSSQL | Beginner Tutorials online without registration, duration hours minute second in high quality. This video was added by user Dot Net Tech 07 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,868 once and liked it 26 people.