CRUD Operations using ASP.NET Core MVC, Entity Framework and SQL Server | Create Read Update delete
Vložit
- čas přidán 25. 07. 2024
- How to perform CRUD operations using ASP.NET MVC and Entity Framework Core. How to connect to SQL Server using Entity Framework and ASP.NET Core Web Application (Model-View-Controller). How to perform CRUD operations using EF and SQL Server Database. How to upload images to ASP.NET.
###########################
Source Code on Patreon : / crud-operations-99301298
Full MVC Course on Udemy : www.udemy.com/course/aspnet-c...
Other Udemy Course :
ASP.NET with Razor Pages : www.udemy.com/course/aspnet-c...
ASP.NET Web API : www.udemy.com/course/build-as...
React JS Course : www.udemy.com/course/build-co...
#########################
Video Content
(00:00) Introduction
(01:15) Create Project and Database
(04:11) Install EF Packages
(06:04) Create and Register ApplicationDbContext
(08:50) Create Product Model
(10:35) Create and Fill the Database Table
(14:07) Read Products
(23:22) Create ProductDto Model
(25:44) Create Products - Create the form
(31:39) Create Product - Save Product
(38:02) Update Product - Read Details
(44:43) Update Product - Update Details
(49:07) Delete Product
Wow, kudos to you. This is short, precise, and beginner-friendly. Touching the area of how to upload & manipulate images makes this tutorial outstanding. I love it.
Really Useful.
This was the only video I found that explained Image Uploading that simple.
Thank you
Many thanks from Tunisia for your nice explanation
This was extremely helpful. Much appreciated.
Thank you. The lecture is so good!
best description zeyd m3ana 😍
Vey useful!!! It helps a lot. I am expecting you to make another video by using scaffold to do CRUD.
Thank you .This video helps me alot thank for your effort 🎉🎉🎉
Hats off to you Sir. It was extremely useful and helped me to take a decision if I could switch my career .Net core. Thanks a Lot Sir.
Good Explanation Thanks
thanxx sir this task will be completed now next
thanks for all bro.
It would be great to include Repository classes, Dependency Injection and Unit Test class in the future.
Thank you for the work you do .
Can you please make an example with the relationship between the tables of the database?
thank you man
Very Interesting... Would it be possible to prepare a video on Blazor?
How to fill data base with sql query?
Actual image element cannot display on create view ?
hello brother
how are you
will you help in my asp . net project?
Blazor Server ???
Unable to edit the image when image is updated the image pic not reflected indicating blank
Validation is not working for me
23:41
How did it pass id in edit ??? Submit will send dto but where is id parameter?
Also update call should be put
it is already in the url
@@codinblue1 Oh ok got it.... Thanks :)
Hi sir i have followed all the way but sitl getting erors can you please provide me the source code of this project
am waiting Thanks
source code link in the description
Im not able to upload the image, can someone help me.
Use this -
string imageFullPath = Path.Combine(environment.WebRootPath, "products", newFileName);
using (var stream = new FileStream(imageFullPath, FileMode.Create));
kya problem hai
can u give me sql file ?
13:11
Hi Bro, I Dont Know Why, But This Code Didnt Return anything , Didnt Saved the Product : [HttpPost]
public IActionResult Create(ProductDto productdto)
{
if(productdto.ImageFileName == null)
{
ModelState.AddModelError("Imagem", "Imagem obrigatória");
}
if(!ModelState.IsValid)
{
return View(productdto);
}
return RedirectToAction("Index","Products");
}
Your code is wrong
@@user-nb6xg8jo2h Ok, Wich line is wrond
Please
You didnt add the line of code to actually save the product
@@gearedup01 Ok, Thanks