Asp.net Mvc : Create Update Delete View With Entity Framework

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 142

  • @CodAffection
    @CodAffection  7 ปีที่แล้ว +7

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/36IA1cH : Same Topic But Latest Version
    bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
    bit.ly/2yEPlpB : Convert MVC App to Single Page(jQuery Ajax)
    bit.ly/403lUVC : MVC Login & User Registration
    bit.ly/39B6xdh : Image Upload in AspNet Core MVC
    bit.ly/30fPDMg : More MVC Tutorials

    • @growsoft7391
      @growsoft7391 4 ปีที่แล้ว

      Automatic class from db not created for me so what can i do

  • @avisheksaha5321
    @avisheksaha5321 3 ปีที่แล้ว

    After many days I got simplified way to understand CRUD Operations. Thank you sir!

  • @JilzEye
    @JilzEye 4 ปีที่แล้ว +3

    I could say this is the best tutorial video i have ever seen about entity framework.Thank you.

    • @CodAffection
      @CodAffection  4 ปีที่แล้ว

      Thanks for your wonderful feedback.

  • @chilledbars557
    @chilledbars557 3 ปีที่แล้ว

    Needed a refresher regarding EF. Thanks for this!

  • @chetandeshpande9930
    @chetandeshpande9930 3 ปีที่แล้ว

    Excellent explanation....Best channel for beginners....Got it very easily... Thank you very much for this and all the videos...

  • @milindhase3097
    @milindhase3097 5 ปีที่แล้ว

    Nice Vedio sir Must understand zale asech vedio tyar kara

  • @anastasiyazyenina3970
    @anastasiyazyenina3970 5 ปีที่แล้ว +2

    OMG thank you so much !! I saw a lot of videos and this was the simplest of all, and the one that worked for me. :D

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      thanks for the feedback.

  • @armalik7285
    @armalik7285 5 ปีที่แล้ว

    Goood Its working, maximum tutorial on TH-cam cant work ,.....

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว +1

      glad you found this asp.net tutorial helpful.

    • @armalik7285
      @armalik7285 5 ปีที่แล้ว

      thnx keep i up.....

  • @Andamaina_Jivitam
    @Andamaina_Jivitam 3 ปีที่แล้ว

    Good sample example for MVC with entity framework

  • @aimhigh2338
    @aimhigh2338 5 ปีที่แล้ว +1

    U made it luk like smoooth and very easy

  • @curtschannel4
    @curtschannel4 4 ปีที่แล้ว +1

    Thank you for the video. Have a blessed evening.

  • @pinarsvc
    @pinarsvc 6 ปีที่แล้ว +4

    Thank you!!! after 3 days , finally i found "edit" thing \o/

  • @c.g.schroder4513
    @c.g.schroder4513 3 ปีที่แล้ว

    Great video. Very clean and concise. Thank you

  • @lakshmanans6721
    @lakshmanans6721 3 ปีที่แล้ว

    Thank you so much for your clear explanation

  • @ndubuisiukwuani435
    @ndubuisiukwuani435 6 ปีที่แล้ว +1

    You are the Boss. Great Tutorial. Thank you

  • @SciFiSpaceExplorer
    @SciFiSpaceExplorer 5 ปีที่แล้ว +1

    Excellent tutorial!

  • @zebafatami1350
    @zebafatami1350 4 ปีที่แล้ว

    very very useful..........Thanks

  • @nitinroy7961
    @nitinroy7961 3 ปีที่แล้ว

    thanks for sharing such information

  • @preethichamarthi8635
    @preethichamarthi8635 3 ปีที่แล้ว

    Tnq u sir it's really helpful

  • @radhikat5963
    @radhikat5963 4 ปีที่แล้ว +1

    Hello Sir ..Thank you very much for this Superb video covering all but I have a doubt why we are not able to insert more records and show all in display as we can see only one record is displayed here..

  • @sweetsatya1041
    @sweetsatya1041 3 ปีที่แล้ว

    Thank u for ur video, it helps me a lot

  • @Nextlevelvideos1
    @Nextlevelvideos1 2 ปีที่แล้ว

    Which version is using for visual studio?

  • @yogendralakraj3214
    @yogendralakraj3214 4 ปีที่แล้ว

    awesome tutorial nice and straight forward

  • @-mohan-2095
    @-mohan-2095 3 ปีที่แล้ว

    Great explanation. Thanks lot.

  • @akashdubey2849
    @akashdubey2849 5 ปีที่แล้ว +1

    can we validate it using javascript?

  • @Spicy_entertainment123
    @Spicy_entertainment123 5 ปีที่แล้ว +1

    Is this database first approach?

  • @balusunitha1480
    @balusunitha1480 4 ปีที่แล้ว

    Great explanation thank you so much

  • @StAntonyChurchTKP
    @StAntonyChurchTKP 3 ปีที่แล้ว

    I've four columns(id, name, dob, address) in the table but showing the column(name) only on the index page.

  • @vinodpatil1509
    @vinodpatil1509 7 ปีที่แล้ว

    Wow wonderful teaching...Awesome tutorial ...

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      thanks a lot, I am glad to see your comment.

    • @vinodpatil1509
      @vinodpatil1509 7 ปีที่แล้ว

      sir please give me communication details
      (mail id or phone number )

  • @mustaqeemfarms
    @mustaqeemfarms 3 ปีที่แล้ว

    Database data Show in index file but not wroking insert , delete and update functions. code write same . Why?

  • @Wesleyvd1991
    @Wesleyvd1991 5 ปีที่แล้ว +1

    i had my sound on 100% and this guy just said HIIIIIIIIIIIII GUYS..

  • @_anjthings
    @_anjthings 4 ปีที่แล้ว

    Hi, Im using vs 2019 and followed this video in creating models but no DbModel.Context.cs made in my created package what would i do? Thank you for the answer

  • @haseebhussain3326
    @haseebhussain3326 5 ปีที่แล้ว +1

    i don't have show Details/1 in Inspect Elements

  • @eel3720
    @eel3720 4 ปีที่แล้ว

    Wonderful tutorial

  • @thechromaknight3449
    @thechromaknight3449 5 ปีที่แล้ว

    Thanks! This video was kept simple and precise, keep up the good work :D

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว +1

      Glad you found this mvc tutorial helpful.

  • @karthikrajs9577
    @karthikrajs9577 6 ปีที่แล้ว +1

    Great Tutorial

  • @abedgharra8552
    @abedgharra8552 4 ปีที่แล้ว

    amazing , thank you mate!

  • @umitgulsen9869
    @umitgulsen9869 7 ปีที่แล้ว

    Thanks for this practical & clear example. It hels me lot.

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      I am glad you found the video helpful

  • @balamurugana6044
    @balamurugana6044 6 ปีที่แล้ว

    nice tutorial.easily understandable

  • @016_fahmidafaiza9
    @016_fahmidafaiza9 2 ปีที่แล้ว

    Thank you very much ..!!!

  • @santhoshkumar7888
    @santhoshkumar7888 4 ปีที่แล้ว

    which version of entity framework u are using

  • @frebolledopal
    @frebolledopal 5 ปีที่แล้ว

    any crud that does not have incremented in the update?

  • @najeebnazir
    @najeebnazir 4 ปีที่แล้ว

    Can't a global variable for db connection work ?
    Private DbModels db = new DbModels ();
    Then use db object in CRUD operations

  • @fired_developer
    @fired_developer 4 ปีที่แล้ว

    I watched multiple times but the create is not saving the record and Details is not taking the id parameter automatically. Details only worked when I typed the id after the URL. SO definitely something is missing here. Though I never tried the delete thing. AS, I was stuck with Create and details most time.

  • @yefersonrubio8506
    @yefersonrubio8506 4 ปีที่แล้ว

    Thanks You!!! Excelent Video

  • @Shreyaa0915
    @Shreyaa0915 4 ปีที่แล้ว

    Thank you! It helped alot☺️

  • @omarbailal5751
    @omarbailal5751 3 ปีที่แล้ว

    Thank you so much

  • @vigneshj3267
    @vigneshj3267 5 ปีที่แล้ว +1

    Nice

  • @uc-rq9xx
    @uc-rq9xx 4 ปีที่แล้ว +1

    thanks bro !

  • @teodoradejanu1777
    @teodoradejanu1777 2 ปีที่แล้ว

    thank you so much for help

  • @simo5465
    @simo5465 6 ปีที่แล้ว

    Thank you very much. It help me a lot to understand . It's very helpfull

  • @mariyanbaltov1260
    @mariyanbaltov1260 4 ปีที่แล้ว +2

    man i have 5 hours to make this thing working i have following problem
    i make everything like you but when i try to create/delete/edit nothing happens the page just reload and nothing
    but if i add data in Sql she is displaying on my monitor

    • @rohitverma-jr8tv
      @rohitverma-jr8tv 4 ปีที่แล้ว +1

      Same thing happening to me also.. something is missing in this video

  • @andreseduardoidrovomunoz1498
    @andreseduardoidrovomunoz1498 7 ปีที่แล้ว +1

    i got this error.
    The parameter dictionary contains a NULL entry for the 'id' parameter of the type that does not accept NULL 'System.Int32' values ​​of the 'System.Web.Mvc.ActionResult Details (Int32)'.
    please help me.

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      did you add hidden field for primary key property ?

    • @meditationandrelaxationmus741
      @meditationandrelaxationmus741 4 ปีที่แล้ว

      I had same problem @Html.ActionLink("Edit", "Edit", new { id=item.customer_id }) | set this in indexcs.html file you are missing passing id in url so the error says cant pass null in primary key

  • @bhawnagupta5236
    @bhawnagupta5236 5 ปีที่แล้ว +1

    My create view is not inserting values in the table and also not redirecting to Index view

    • @MukeshSharma-jk8uh
      @MukeshSharma-jk8uh 5 ปีที่แล้ว

      Same here

    • @mariyanbaltov1260
      @mariyanbaltov1260 4 ปีที่แล้ว

      @@MukeshSharma-jk8uh same here

    • @rohitverma-jr8tv
      @rohitverma-jr8tv 4 ปีที่แล้ว

      @Codeaffection can you please clarify about this. Maximum number of people are not able to insert records.. please suggest

  • @yuvashreekanniappan6757
    @yuvashreekanniappan6757 3 ปีที่แล้ว

    Hi @CodAffection create is not working, it is not updating the data in DB and not reflecting back in the index. Please do the needful☺

    • @mshawaizminhas
      @mshawaizminhas 3 ปีที่แล้ว

      Just close the table in db server and refresh it .

  • @MrMavAKA
    @MrMavAKA 6 ปีที่แล้ว

    you are so PRO :-) Please more

  • @selfies7143
    @selfies7143 6 ปีที่แล้ว

    Really Helpful.Thanks a million

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      glad you found the video helpful.

  • @030_asrarmirza7
    @030_asrarmirza7 2 ปีที่แล้ว

    Thank you sir

  • @ПетрДанькин-ф2с
    @ПетрДанькин-ф2с 5 ปีที่แล้ว

    Спасибо! Очень толково

  • @hamidshaikh9649
    @hamidshaikh9649 6 ปีที่แล้ว

    Great Explanation.. Thank You..!!

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      Glad you found the video helpful.

  • @kidsworld1730
    @kidsworld1730 5 ปีที่แล้ว

    Hi, good one. Could you please create another video with latest MVC including unit test/Test cases. We know that MVC is good for unit testing but how to implement it practically? Thanks!

  • @ranafaraji4069
    @ranafaraji4069 3 ปีที่แล้ว

    It was really good ,I also need to know about firstOfDefault, first, any, all, where, skip. take, select.order by
    If you know the toturial that teach all please let me know
    thank you

    • @CodAffection
      @CodAffection  3 ปีที่แล้ว

      Glad you liked it and thanks for the suggestion.
      I'm planning to do beginners to advance EF Tutorial.

  • @juanwang4270
    @juanwang4270 7 ปีที่แล้ว

    Is there anyway that MVC can perform online endorsement? For example, I want to have a system for online report endorsement for lecturers and students

  • @venkatesht6004
    @venkatesht6004 3 ปีที่แล้ว

    Tq very much sir

  • @priyankavarahagiri3104
    @priyankavarahagiri3104 4 ปีที่แล้ว

    I want to redirect from Login page to Register page if it is a new user. How can i do that. please tell

  • @devuization
    @devuization 3 ปีที่แล้ว

    I am getting system.Nullreferenceexception at create view near @Html.EditorFor(model => model.Name) . Can anyone please help

  • @icexdragon
    @icexdragon 6 ปีที่แล้ว

    Entry(someClass).State = EntityState.Modified; and SaveChanges doesn't work for me. It throws DBUpdateOptimisticConcurrency exception

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      you can download demo project source code and try, and then compare with your project.

  • @mehribannasibzade1756
    @mehribannasibzade1756 4 ปีที่แล้ว

    Have a nice day.
    Can you help me please In Add, Details and Delete
    I get this error:
    The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Delete(Int32)' in 'project1.Controllers.KayitController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
    Parametre adı: parameters

  • @GabrielOliveira-qy4tq
    @GabrielOliveira-qy4tq 7 ปีที่แล้ว

    Great video.

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      thanks.
      Related Videos :
      Asp.Net Mvc CRUD Without Entity Frame Work : th-cam.com/video/1IFS33sPDhE/w-d-xo.html
      DropDownList Asp.Net MVC : th-cam.com/video/ei4dOToBFxs/w-d-xo.html

  • @tricman10
    @tricman10 6 ปีที่แล้ว

    Your whole series on MVC are really, really great! I have a question.. How would I get the id for the edit or delete if I don't have my buttons in a table? If I have two buttons below the table, and I wanna click on a item in a table and then on that edit or delete button?

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว +1

      when user select a record from table you can add 'active' class to that row and then inside button click event check the row which has active class.
      Another latest video for crud operations in Asp.net Mvc
      1. th-cam.com/video/_qIYBgWTlTo/w-d-xo.html
      2. th-cam.com/video/DI_YppvLgJ8/w-d-xo.html

  • @taimoorrajput8082
    @taimoorrajput8082 6 ปีที่แล้ว

    thanks
    this was helpful ...

  • @dekpadtin
    @dekpadtin 5 ปีที่แล้ว

    Super. thank you

  • @sanjaysgurjar
    @sanjaysgurjar 4 ปีที่แล้ว

    Thanks

  • @supakichlertprasertphan6667
    @supakichlertprasertphan6667 5 ปีที่แล้ว

    Thanks a billion!!

  • @santhoshkumar7888
    @santhoshkumar7888 4 ปีที่แล้ว

    bro not able to list the customer details. kindly help me

  • @bhimsinghrathod4719
    @bhimsinghrathod4719 3 ปีที่แล้ว

    Can u plz tell me in index(), view has parameter view(dbmode.customers.tolist()) can u plz explain me customers over here because I don't understand why it's written here.. Because table name is customer, model name id customer and controller name also is customer then how it's because customers..

  • @miitter
    @miitter 7 ปีที่แล้ว

    Hi Dotnet, your videos are really awesone, your effort and your teaching skills are phenomenal , many thanks. I have a question how i can use bootstrap in the templates?

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว +1

      Thanks for the Comment - It means a lot to me.
      Better I would create a separate video on 'using bootstrap templates in asp.net mvc'.

    • @miitter
      @miitter 7 ปีที่แล้ว

      Thank you Dotnet, also i'm trying to make a sql sentence with 3 tables, and then show that into a gridview, can you help me with that please?!

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      you want to bind 3 table join result in asp.net gridview, right ?

    • @miitter
      @miitter 7 ปีที่แล้ว

      Yes, exactly, i am showing just the numbers of the foreign keys, but i iwant the information.

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      uploaded a video on asp.net gridview bind , try this th-cam.com/video/_Ms5_6e7Fu4/w-d-xo.html,
      and let me know if you need more help.

  • @joelinajoepotpa7468
    @joelinajoepotpa7468 3 ปีที่แล้ว

    This is a great tutorial but when I try to follow the steps on edit code part, I don't know how to fix it, in this part the word State is error. dbModel.Entry(customer).State = EntityState.Modified;

    • @CodAffection
      @CodAffection  3 ปีที่แล้ว +1

      If you doing the crud operation in .Net Core
      Try to follow this tutorial : th-cam.com/video/AHqIrJ_PlPY/w-d-xo.html
      Else try to download the demo project and compare it with yours. If it is not helping let me know.

    • @joelinajoepotpa7468
      @joelinajoepotpa7468 3 ปีที่แล้ว

      @@CodAffection thankyou

  • @ibtehajali1936
    @ibtehajali1936 7 ปีที่แล้ว

    Hello sir your vedio is very helpfull for mvc learning.. i want to ask when 1st i create the customer then they will come to index and show the customer.. but again when i try to add the new customer again then this will create a problem.. they do not add the new customer or not show into the list... help me plz...!!!!!!

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      but working in my system. did you download the demo project ?

    • @ibtehajali1936
      @ibtehajali1936 7 ปีที่แล้ว

      No like i create the new db which having primary key like id... Like i have a db of student so when i create the new the id of db will not increment and the value of id remain 0 so that y they cannot add more students... Thanks for quick rply ... I will appreciate you for this and your tutorials...

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      did you set identity specification for the column id, like I have done in 1:41

    • @ibtehajali1936
      @ibtehajali1936 7 ปีที่แล้ว

      Ok thanks i got the point... Already do it using query..thanks for help..... U doing a very great job to help peoples... Which is want to become a good programing in asp.net...

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      thank you very much for the support

  • @igornowicki29
    @igornowicki29 5 ปีที่แล้ว +1

    For a second I thought it was tutorial made by Dunkey.

  • @janasworld--3400
    @janasworld--3400 5 ปีที่แล้ว

    how can i get the full project ?

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      hope there is a github link in video description. let me know if it's not there.

    • @mariyanbaltov1260
      @mariyanbaltov1260 4 ปีที่แล้ว

      @@CodAffection it's not there

  • @taimoorsheikh5001
    @taimoorsheikh5001 7 ปีที่แล้ว

    What exactly is CUSTOMERS here?
    Controller?
    Model?
    Table?
    I cant seem to figure this out?

    • @JavedKhan-ft1pr
      @JavedKhan-ft1pr 6 ปีที่แล้ว

      I am also confused about 'Customers'.

    • @JavedKhan-ft1pr
      @JavedKhan-ft1pr 6 ปีที่แล้ว

      Ok I found it. check out the models folder > there see the DbModel.Context.cs. its actually DbSet

  • @sewu1996
    @sewu1996 5 ปีที่แล้ว

    why can't my create operation works?? it shows Error 500. someone help me :( been searching for solutions since ages alrready T_T

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      try in debug mode, to check what is the exact cause of the error ?

  • @manjunh2420
    @manjunh2420 7 ปีที่แล้ว

    nice but my edit and delete action methods are not working..

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      any error message ?

    • @mariyanbaltov1260
      @mariyanbaltov1260 4 ปีที่แล้ว

      @@CodAffection no i don't have error message but mine doesn't work too

  • @ar1ah474
    @ar1ah474 3 ปีที่แล้ว +1

    I love you

  • @navajyotdesai732
    @navajyotdesai732 3 ปีที่แล้ว

    "Rdlc report using without entity framework using store procedure" Please make a new vedio.
    For all viewer helpful this vedio.

  • @RebelSouls
    @RebelSouls 6 ปีที่แล้ว

    where is link for project?

  • @jayavardhannaidu7300
    @jayavardhannaidu7300 6 ปีที่แล้ว

    not with the single table with multiple tables i want

  • @abdullahismail1814
    @abdullahismail1814 6 ปีที่แล้ว

    can i get its code?

  • @onemorestory1
    @onemorestory1 5 ปีที่แล้ว

    Hi Guyss :D

  • @cuongnguyen98386
    @cuongnguyen98386 3 ปีที่แล้ว

  • @max_san2221
    @max_san2221 4 ปีที่แล้ว

    Thank you. Nice the video.

  • @sachinthasaranga1720
    @sachinthasaranga1720 3 ปีที่แล้ว

    Thank you so much

  • @barsaydogdu6541
    @barsaydogdu6541 2 ปีที่แล้ว

    thank you so much