ASP .NET 6 CORE Database First CRUD with EF Core in MVC using Visual Studio 2022
HTML-код
- Опубликовано: 10 сен 2024
- Learn the basics and advanced features of .NET Core (.NET 6)
and then build a DBFirst CRUD application with MVC in this tutorial.
From this Video You will learn
1. What is .NET 6?
2. What is Database First Approach?
3. Why and when we should use DBFirst Approach of EFCore.
4. Then We will be Creating a ASP.NET Core MVC CRUD application in DBFirst Approach using EFCore.
5. You will learn in detail about the importance of the command Scaffold-DbContext.
6. we will be Generating DBContext and Models using the Scaffold-Dbcontext command.
7. Creating CRUD Operations using DBFirst Approach.
8. Adding Pagination feature to the CRUD.
9. Adding Search Options to the Crud.
Lets see what is .Net 6.
.NET 6 is the development platform to create any kind of application
for any platform. With the release of .NET 6, Microsoft consolidates
its plan to create a unified platform to develop applications for
any device and operating system.
With .NET 6, you can really create the application you want
and run it practically everywhere: from desktop to mobile and
from the web to the cloud.
Together with this vision, .NET 6 brings many new features
aiming to simplify development and gain performance.
The vision of a unified platform for the .NET world started
with .NET 5. thats why they renamed .net core as .net 5 earlier.
and no more .net framework, I mean windows only framework
will be released.
We will also see what are new cool features of Visual Studio 2022
like Global Usings, Implicit Usings, New Namespace syntax, Hot Reload,
Program.cs etc.
we will see much more in the Video. so please watch the
video and give your Valuable comments.
Best Regards,
-Aniz
Db first CRUD .net 3.1 version
• Entity Framework Core ...
Code First .Net 3.1 Version.
• AJAX asp.net core 5 MV...
Code First Pagination Video Link
• asp.net core MVC crud ...
Inventory Software Playlist.
• Asp net core 5 MVC Tut...
Great video! Short, concise and very usefull. I made it for MySQL. Thanks so much!
Thank You. Very Nice video. and detailed explanation about the new features of net6.
you just saved me and my work. thanks a lot my dude.
Thank you ...very useful video on dotnrt6 and a new changes in that version...we need one vide for fulll project with dal and reprostry concept...thanks
Thank you great tutorial
Very Nice Work, Please make more videos. Thank You.
Userful and nicely commented. Thank you
Welcome and So nice of you.
Real good video! I appreciate the time you have put into this and it is very helpful.
You're very welcome! Keep following the channel.
Excellent
Thanks
Hi, is there a video related to using/calling a stored procedure in DB first concept in EF
core project ?
Looooove your videos. Please keep it up! ❤🔥❤🔥
Thank you! Will do!
superb superb superb.....
Thank you! Cheers!
awesome
what if I want to add a new table say Orders in same db after completing of above steps in package manager console for customers ? Do I have to add directly in sql server db with query or should I implement using the same steps again and again if i want to create new table everytime ??
how can I get the souce code?
I hv watched your video, but i feel myself that y can't there is no vs 2022. But now i m very happy on seeing this video. Kindly forward all video links for vs 2022
Thank you Sir, best video I've seen on the topic. One question, how do you create a dbcontext for Oracle Database? There seems to be no method .UseOracle in Oracle.EntityFrameworkCore, I might be wrong. Btw, thank you for the source code!
You are Most welcome.
I found this myself...
the method I needed .UseOracle is found in the namespace Microsoft.EntityFrameworkCore
Hello! Do you have a project video for linked tables? In my project on Net Core 6, data is not added to the linked table.
Please refer this.
ruclips.net/video/-BM3-MpMtXA/видео.html
Master Detail entry form using Advanced JavaScript CSS ASP.NET CORE MVC
[Required(ErrorMessage = "Required")]
[DataType(DataType.EmailAddress)]
y miss datatype thats y not create in your coding
Thanks, will do.
nice
So nice
Great videos tutorial. please how can restore the DBfirstCrud2022.bak because i am using 2017 MSSQL Database.
sir pls release a video for dynamic pager, it would be very helpful
Sure, Will Do. Thanks for Watching.
Thanks, Very Nice Explanation. Can you show how to restore the database file.
You are welcome. Please see the next video of this series.
Thank you sir. Very helpful video. where to get zip file for db so that i can restore and work on that , it will save my time. thank you once again!
You are Most welcome.
source code and DB URL shown in this video ruclips.net/video/gBHY0Jt8ZjQ/видео.html
can give me pager.cs and pager.cshtml codes?
this has the complete source code URL ruclips.net/video/gBHY0Jt8ZjQ/видео.html
Can you please provide the code link of this video...
The source code link is already shown in the video. please download from there.
Source code not found ?
Source code URL appears after 20:31
Please see the video without skipping. source code URL is active.
can u share ur project github link ? thanks
You are welcome,
source code link is in the video and also complete source is shown in the video.
yes wot
hi, please don't put spam comments.
𝓅𝓇𝑜𝓂𝑜𝓈𝓂 😜
i did not understand what do you mean
nomt
hi, please don't put spam comments.
jaja
hi, please don't put spam comments.
Appsetting.json
-------------------------
sir i m very sorry, y can't u use AppSettting.json for connection syntax is
"connectionString": {
"DefaultConnection": "Data Source=DESKTOP-DA9CINK;Initial Catalog=db_test;User Id=sa;Password=123"
}
at the bottom of line and
Program.cs
------------------
var builder = WebApplication.CreateBuilder(args);
string connection = builder.Configuration.GetConnectionString("DefaultConnection");
// Add services to the container.
builder.Services.AddControllersWithViews();
builder.Services.AddDbContext(options =>
{
options.UseSqlServer(connection);
});
again sorry sir, bcz i learned lot from your video only.
the aim of this tutorial is to teach database first approach, so i want to make simple and i ignored the appsettings.json. i have a separate inventory program play list. please watch. it teaches everything from scratch.