Asp .Net MVC Full CRUD Operation Using Entity Framework DB First | CRUD Operations in MVC

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • #ASPNET #MVC #CodeWithGopi
    Asp .Net MVC Full CRUD Operation Using Entity Framework DB First | CRUD Operations MVC | MVC Examples
    Step by step tutorial on Asp .net MVC Full CRUD Operations Using Entity Framework DB First with SQL Server.
    Explained the process to Create, Read, Update and Delete the data in MVC by using Entity Framework DB first approach with ASP.Net and SQL Server.
    Buy me a Coffee: www.buymeacoffee.com/codewith...
    Join this channel to get access to perks:
    / @codewithgopi
    For better understanding Please watch the video till the end.
    Please subscribe to my channel.
    ⌚ Timestamps
    00:00 - Intro
    01:02 - SQL DB / Table Creation
    03:49 - Project Creation
    05:01 - Model Creation
    07:00 - Controller Creation
    11:00 - CRUD Operations DEMO
    12:43 - Apply Bootstrap Styles
    Playlists:
    .Net Core :
    • .Net Core MVC
    MVC Examples :
    • MVC Examples
    Real Time Examples in Asp .Net :
    • Real Time Examples in ...
    Asp .Net Tutorial :
    • Asp.Net Examples
    RDLC Reports :
    • RDLC Reports
    SQL Server Tutorial for beginners :
    • SQL Server Tutorial fo...
    Utilities:
    • Utilities
    Connect to My blog : codewithgopi.blogspot.com/
    Tags:
    Asp net Mvc Full CRUD Operation Using Entity Framework DB First
    CRUD Operations using Entity Framework Database-first Approach In ASP.Net MVC
    ASP.Net MVC 5 Database First with Entity Framework 6
    Asp.net Mvc : Create Update Delete View With Entity Framework
    C# Asp.Net MVC CRUD Operations Using Entity Framework
    EntityFramework Db First approach in .NET 5.0 MVC with CRUD operations
    ASP.NET MVC CRUD Operations Using Entity Framework | ASP.NET MVC Create, Update, Delete Operations
    CRUD operations in ASP.NET MVC5 using Entity Framework Code First and SQL Server database Tutorial
    Asp net Mvc Full CRUD Operation Using Entity Framework DB First
    Full CRUD operation using datatables in ASP.NET MVC
    Asp.net Mvc : Create Update Delete View With Entity Framework
    Asp.Net MVC CRUD Operations Using Datatable
    Asp.Net MVC CRUD Without Entity Framework - Create,Update,Delete and View
    Insert update delete in mvc using entity framework
    Asp.Net MVC CRUD Operations Using Entity Framework
    CRUD Operation In ASP.NET Core MVC Application From Scratch VS2019
    Create First MVC CRUD Web Application using Visual Studio 2019
    asp.net mvc crud full crud operation using datatable in asp.net mvc mvc crud operation using entity framework db first crud in mvc mvc crud using jquery ui mvc crud mvc step by step tutorial on asp.net mvc crud mvc entity framework database first crud crud operations in asp.net mvc 5 using entity framework crud asp.net mvc crud operations using datattable and ajax request asp.net mvc mvc crud operation using db first entity framework
    entity framework crud operations in asp.net core mvc mvc crud using entity framework core crud operations in asp.net mvc 5 using entity framework mvc crud operation using entity framework db first crud operations in asp.net mvc5 using entity framework crud entity framework mvc crud with entity framework crud entity framework code first entity framework

КОМЕНТАРІ • 89

  • @notsopro1557
    @notsopro1557 2 роки тому +3

    Thank you so much brother, God bless you! You're so great you really help me on my project

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks for your feedback and support 👍

  • @akshaygite900
    @akshaygite900 Рік тому +3

    Thank you sir 👍👍

  • @swapnalisalunkhe5488
    @swapnalisalunkhe5488 5 місяців тому

    Heyy, It shows me exception in 54 line of controller whenever I try to add records

  • @ramyajayaraman7744
    @ramyajayaraman7744 2 роки тому +6

    This is the best tutorial so far, it's to the point and simple. Thanks a lot sir

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks for your valuable feedback and support 👍

  • @davoodnavidi7117
    @davoodnavidi7117 2 роки тому +3

    Perfect ....
    It was useful and simple

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks for your valuable feedback and support 👍

  • @Developer_SwapniL
    @Developer_SwapniL Рік тому

    At 6:51 it is not showing in Models folder what to do plz help

  • @naveenv7127
    @naveenv7127 2 місяці тому

    Hi bro ive already installed Entity Framework but it is not showing while iam adding in models .

  • @alexjoseph7932
    @alexjoseph7932 2 роки тому +2

    Excellent exercise!!!

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks for your valuable feedback 😀

  • @muhammadridhoprakarsa
    @muhammadridhoprakarsa Рік тому

    What if I use two related tables?

  • @shubhamjamdade6983
    @shubhamjamdade6983 Рік тому

    want to add radio button and checkbox in this crud then how to do that??plssss Ans

  • @anbuanbu6591
    @anbuanbu6591 2 роки тому

    Hi brother, how to implement admin template in layout page

  • @CPAMohamedGai
    @CPAMohamedGai 4 місяці тому +1

    Thanks u sir was bitterly struggling until i saw this vedio that made things so so simple

    • @CodeWithGopi
      @CodeWithGopi  4 місяці тому

      Thanks for your valuable feedback and support 👍

    • @CodeWithGopi
      @CodeWithGopi  3 місяці тому

      Thank you for your feedback and support! If you're able, please consider supporting my channel by becoming a member or using Super Thanks.

  • @ghulammustafajagirani8380
    @ghulammustafajagirani8380 Рік тому +1

    Really Thanks Sir

    • @CodeWithGopi
      @CodeWithGopi  Рік тому

      Thanks for your support follow the channel for more useful content

  • @sanketkondhalkar6553
    @sanketkondhalkar6553 2 роки тому +2

    It's really helpful

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks 😊 for your valuable feedback 👍 and support

  • @ghulammustafajagirani8380
    @ghulammustafajagirani8380 Рік тому +1

    Sir Lots Lots Thanks For This Video

  • @user-oy7gv6ln8n
    @user-oy7gv6ln8n Рік тому +1

    sir model not created and not shoeing any file lastly 05:01 - Model Creation

  • @prashantrathore6248
    @prashantrathore6248 2 роки тому

    Great Sir ji excellent explanation

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thank you so much for your valuable feedback and support 👍

  • @wawanshu8156
    @wawanshu8156 2 роки тому +1

    Thank you so much, ist really help full to me, next plz upload tutorian canlender and combo box

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      Sure. I will do it ASAP. Thanks for your support 🙏

  • @chathuradilshan8601
    @chathuradilshan8601 2 роки тому +1

    Thankz!

  • @maniforluacan6479
    @maniforluacan6479 4 місяці тому

    can put glyphicons?

  • @THEEXPLAINERSCULTURE
    @THEEXPLAINERSCULTURE Рік тому +2

    I have become your fan sir

    • @CodeWithGopi
      @CodeWithGopi  Рік тому

      Thanks a lot for your valuable feedback and support

  • @nikhildevaki8971
    @nikhildevaki8971 Рік тому +6

    why in models ado.net entity data model is not coming for me?

    • @sneharavi924
      @sneharavi924 8 днів тому

      Did u find this?I also don't see this option

  • @nigamkalpataruchinhara1951
    @nigamkalpataruchinhara1951 2 роки тому +1

    Really helpful... Thanks 🥀

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      Thanks for your valuable feedback

    • @nigamkalpataruchinhara1951
      @nigamkalpataruchinhara1951 2 роки тому +1

      @@CodeWithGopi Brother, if possible recreate crud of entity fw based on vs 2022.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      Thanks for your interest. Uploading those videos also. DB First example with .net 6.0 Already uploaded. Please have a look..soon will upload other videos also.

    • @nigamkalpataruchinhara1951
      @nigamkalpataruchinhara1951 2 роки тому

      @@CodeWithGopi thanks bro.. waiting for those🤩

  • @jeffridcornejorivero8019
    @jeffridcornejorivero8019 2 роки тому

    Good afternoon, a favor, I have been testing the system in Visual studio 2022 and 2019 and I get the error: EntityState error in visual studio or problem when modifying in entity framework, please help.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Hi, Please ensure that you have added primary key in your table. Still if you have issue, please share error details.

    • @jeffridcornejorivero8019
      @jeffridcornejorivero8019 2 роки тому

      This error explains to me that you cannot implicitly convert type 'System.Data.EntityState' to 'System.Data.Entity.EntityState'. that an explicit conversion already exists.

    • @jeffridcornejorivero8019
      @jeffridcornejorivero8019 2 роки тому

      Compiler error CS0266

  • @adityakr8055
    @adityakr8055 Рік тому +1

    i got an issue that is on the page below that Application name bar the content is not coming i.e., index create new an all.plz help me with this

    • @CodeWithGopi
      @CodeWithGopi  Рік тому

      Is this hitting your controller while loading data. Please add debug point and check

    • @adityakr8055
      @adityakr8055 Рік тому

      @@CodeWithGopi can u guide me how to do that.?

    • @CodeWithGopi
      @CodeWithGopi  Рік тому

      Add debug point in index action method in your controller

  • @banna336
    @banna336 Рік тому

    facing error while generating database through Model first approach in mvc -
    Expression of type
    'System.Data.Entity.Core.Metadata.Edm.EdmItemCollection' cannot be used for return type
    'System.Data.Entity.Core.Metadata.Edm.EdmItemCollection'
    DDL file is generating query... kindly solve this

    • @CodeWithGopi
      @CodeWithGopi  Рік тому +1

      Hi,
      Clean your solution and rebuild the solution before running the application. Still if you are getting any errors please let me know..will check

    • @banna336
      @banna336 Рік тому +1

      @@CodeWithGopi will let you know shortly

  • @kalyanchakravarthyc-xo6ub
    @kalyanchakravarthyc-xo6ub Рік тому

    HI brother i created new project .i need to add model .in that add list i didn't get ado.net entity model option please help me brother.

    • @CodeWithGopi
      @CodeWithGopi  Рік тому +1

      Go to Tools -> Get Tools and features.
      Select Individual components tab and check Entity Framework 6 tools under SDK's, libraries, and framework section

  • @eugeepantua6300
    @eugeepantua6300 2 роки тому +1

    Can I use visula studio 2017?

  • @anbuanbu6591
    @anbuanbu6591 3 роки тому +2

    Hi bro,
    Kindly create with any real time architecture design pattern. Its use ful for beginner.

    • @CodeWithGopi
      @CodeWithGopi  3 роки тому +1

      Sure I will do it...thanks for your support...appreciate your inputs

    • @anbuanbu6591
      @anbuanbu6591 3 роки тому +1

      @@CodeWithGopi thank you.

    • @CodeWithGopi
      @CodeWithGopi  3 роки тому

      Please share 🙏 with your friends and support

    • @anbuanbu6591
      @anbuanbu6591 3 роки тому +1

      Sure

  • @armanhossain2494
    @armanhossain2494 Рік тому

    textbox + datagridview save data to database

  • @anilkumarthatipamula9380
    @anilkumarthatipamula9380 2 роки тому +1

    Please post mvc real-time projects

  • @duragrajuveeraboina2677
    @duragrajuveeraboina2677 2 роки тому +1

    Nice explanation sir but small dout sir plz help me sir

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Thanks for your valuable feedback. You can ask your doubts here or mail me

  • @saranya630
    @saranya630 2 роки тому

    It shows me an exception when I try to add new record in line 54 in the controller 😑

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Please share the error details

    • @developermode274
      @developermode274 2 роки тому

      @@CodeWithGopi Hello I'll add the details of the error since I'm getting the same issues as his.
      System.Data.Entity.Infrastructure.DbUpdateException
      HResult=0x80131501
      Message=Unable to update the EntitySet 'EMPLOYEEMASTER' because it has a DefiningQuery and no element exists in the element to support the current operation.
      Source=EntityFramework
      StackTrace:
      at System.Data.Entity.Internal.InternalContext.SaveChanges()
      at System.Data.Entity.Internal.LazyInternalContext.SaveChanges()
      at System.Data.Entity.DbContext.SaveChanges()
      at CRUD_MVC_12_10_2021_1132.Controllers.EmployeeController.Create(EMPLOYEEMASTER eMPLOYEEMASTER) in E:\Other\ASP NET\project2021_12_8_1516\CRUD_MVC_12_10_2021_1132\CRUD_MVC_12_10_2021_1132\Controllers\EmployeeController.cs:line 54
      at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
      at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
      at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
      at System.Web.Mvc.Async.AsyncControllerActionInvoker.c.b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
      at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
      at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
      at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
      at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.c__DisplayClass11_0.b__0()
      at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.c__DisplayClass11_2.b__2()
      This exception was originally thrown at this call stack:
      [External Code]
      Inner Exception 1:
      UpdateException: Unable to update the EntitySet 'EMPLOYEEMASTER' because it has a DefiningQuery and no element exists in the element to support the current operation.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Hope there is no primary key added to your table. Please check

    • @developermode274
      @developermode274 2 роки тому +1

      @@CodeWithGopi That worked. Thanks.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Great 👍

  • @bibekkarki2648
    @bibekkarki2648 2 роки тому +1

    i could nt find ado.net entity data model plz help

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      Open Visual Studio installer
      Select Individual components tab and check Entity Framework 6 tools under SDK's, libraries, and framework section

    • @deepaksarode3671
      @deepaksarode3671 Рік тому +1

      @@CodeWithGopi it is already checked but still it is not showing ado.net entity data model in the add section

  • @palakrajput2778
    @palakrajput2778 9 місяців тому

    Source code pls

  • @revanthpothuraju
    @revanthpothuraju 2 роки тому +1

    Hello error will come to me system. Data. Entity. Validation. Dbentityvalidationexception

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      Hi, Please build your application after adding Entities. Still if you are facing any errors, please do share errors screen or source on gpaptechnologies@gmail.com

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      Also clean your solution before rebuild

    • @revanthpothuraju
      @revanthpothuraju 2 роки тому +1

      Okay 👍 thank bro

    • @revanthpothuraju
      @revanthpothuraju 2 роки тому +1

      Without entity framework really time project chapava

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      👍

  • @chintunayak9078
    @chintunayak9078 Рік тому +1

    no use waste of time dot do like that this is worst method
    write code manually

    • @CodeWithGopi
      @CodeWithGopi  Рік тому

      Thanks for your valuable feedback. If you are looking for the code to write manually, please watch the below video and Provide the feedback. Thanks
      ua-cam.com/video/gNvuZTg0H1k/v-deo.html

  • @developermode274
    @developermode274 2 роки тому +2

    I'm having an issue when trying to add a controller with an error that saying:
    There was an error running the selected code generator:
    There was an error getting the type
    'CRUD_MVC_12_10_2021_1132.Models.EMPLOYEEMASTER'. Try
    rebuilding the project.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому +1

      build your application after adding Entity Framework then add your controller...still if you are facing issue, restart visual studio, clean solution, build and add controller...please let me know still you have any issues

    • @python-br4kj
      @python-br4kj 2 роки тому +1

      @@CodeWithGopi This solved my problem thanks alot.

    • @CodeWithGopi
      @CodeWithGopi  2 роки тому

      That's great 👍

    • @srs3780
      @srs3780 Рік тому

      Hi. I also face similar kind of error while creating controller. I got "Exception has been thrown by Target of invocation". Please help me solve this issue.