Это видео недоступно.
Сожалеем об этом.
CRUD Operations Using Database First Approach In Entity Framework Core 6 and ASP.NET Core MVC 6
HTML-код
- Опубликовано: 16 авг 2024
- This tutorial is on CRUD operations using database first approach in Entity Framework Core 6 and ASP.NET Core MVC 6. This approach uses EF Core 6 libraries to connect to a SQL server database in the backend. The software used for this tutorial are Visual Studio 2022, .NET core 6, C# 10 programming language, SQL server express edition and SQL Management studio. All the links to download these software are provided below.
Do you want to learn how to use and interact with the ChatGPT AI language model, one of the most powerful and versatile natural language processing tools in the world? If yes, then you should check out this amazing course that will teach you everything from the basics to the advanced features of ChatGPT. Click on this link to get started and enjoy a special discount from me:
bit.ly/3E8VEjF
Download the source code for this project from below location:
github.com/tut...
Visual studio 2022 download link:
visualstudio.m...
SQL server express edition:
www.microsoft....
SQL Management Studio 2019:
docs.microsoft...
---Contents of this Video----
0:00 Intro
1:00 Create new ASP.NET Core MVC project
1:46 Create SQL Server Database
5:25 Add nuget packages
6:59 Create Model and DBcontext objects
10:01 Add connection string
10:42 Update program.cs
13:19 Add Controller
14:04 Update Layout page
15:00 Run the app
Please subscribe to the channel and like the video. I hope you will have a great career ahead 😊.
I was trying to connect my database for 2 days now and was unable to do it. Then i found this gem of a video. Thank you so much for making our lives easy sir.
Thanks for your kind words
Great video! Thanks!. Could you create a part two where you add a couple of child tables in the databasse and then show how you update the code so it can use the child tables?
Thank you for your tutorial. I am confuense how to use db connection string, but your video is show how to use. thank you again.
Great tutorial, I have entered to dotNETCore Developer community, Thank you so much
You are welcome
Thanks man, you saved my semester!
You are welcome
Super well done and informative. Thank you.
Very Help Full Video For Me Thanks A lot
You are welcome
One of the most amazing video i have ever vatched
Thanks for your kind words
Thank you so much.Your tutorial is the only one perfect for me , sir;
You are welcome
Thank you. Very concise and informative.
Thanks for creating this video. Definitely it's a great video with clean code. Could you please create a video how can we add another or multiple table and also update models in existing project?
The best and shortest video
Thank you
Thanks alot man!! great video!!!
Thank you
Neat and clean tutorial.. Thank you so much. Please make more tutorial covering complete dot net core 6 with entity framework
Sure. Thanks for your feedback.
Magical. So well Done. Thanks.
Glad you enjoyed it!
Just in case you try to use with packages version 7.0.0, the ConnectionStrings have to include "Encrypt=false;". I wasted almost one day to get to this, because the ConnectionStrings like the video didn't work.
New versions of packages get released frequently so the behaviour may differ a bit. Thanks for your feedback.
Very good explanation, thank you!!!
You are welcome
Really Helpful, Thank you.
You're welcome!
Thanks so much. This video is really helpful.
You're very welcome!
Thanks, this tutorial vid really helped me a ton
Need Get Data from Multiple Tables with join Query, DB First Approach, MVC, Not Repository Parrten
video is so helpful sir, but i have one query what if i add any column then where we have to make changes in visual studio
You have to refresh the entity framework
Great video thank you!
My pleasure!
very good bro I have a problem, I have my database but I have a column of dates so it shows me the time and date and what I want is only to have the date in my table I wanted to modify it in models but it does not work since net 6 It already has added as DateOnly if you can help me
Thanks. In the get and set of your property you need to format the date.
Thank you bro ☺
You are welcome😊
Thank you so much. It's working fine.
You are welcome
Good,but what if I want to change the structure of the DB?
Please upload the video on Export data in excel file by using ASP.NET core 6.0 Web API
show error message- A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) Pls help me
How did u fix it?
Just in case you haven't figure it out try something like this:
Scaffold-DbContext "Server=DESKTOP-2VRJKGU\MSSQLSERVER_VF; Database=ComprasISO810;Trusted_Connection=True; TrustServerCertificate=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
Hope it helps you man!
Kindly make the video with Add Photos and cascading
Ok. Thanks for your comment.
why my Program.cs is different from yours?
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
});
}
You should use Visual studio 2022 for the latest program.cs template
Create a new project and write a API for Export data in Excel
source code please
github.com/tutorpraveen/Core6DBFirstCountryApp
why i have show this
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted
After this comand
Scaffold-Dbcontext "Server=.\SQLExpress;Database=HumenResourece;Trusted_Connection=True;"Microsoft.EntityFrameworkcore.SqlServer -OutputDir Models
Thank you