Asp.Net Core MVC Web App CRUD with EF Core

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 229

  • @CodAffection
    @CodAffection  5 років тому +9

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/36IA1cH : Latest Video on This Same Topic
    bit.ly/3muhseC : CRUD without EF in AspNet Core MVC
    bit.ly/3Pn2S7y : Expense Tracker App in AspNet Core MVC
    bit.ly/403lUVC : MVC Login & User Registration
    bit.ly/2yEPlpB : Convert MVC App to Single Page
    bit.ly/39B6xdh : Image Upload in AspNet Core MVC
    bit.ly/3MkPZex : A to Z about AspNet Core Identity with .Net Core API

    • @blackclover5561
      @blackclover5561 5 років тому

      Can you please show us how to make and use Data Transfer Objects and actually explain them how they work?
      Greetings from Macedonia!

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

    I was given an assignment for the job I applied to and I had no experience with C# before. Glad I got this video. Thanks alot for uploading a detailed CRUD video.

  • @ngocthinh3935
    @ngocthinh3935 4 роки тому

    first all of. I am really thank you for your video. I am a third-year student in VietNam and I am starting learning dotnet core mvc web application. so I really appreciate your video and this very helpful for me. Thank you for creating an excellent course

  • @default632
    @default632 4 роки тому +1

    Your accent is very clear sir, good job. And you explain nicely

  • @peytonnaomi
    @peytonnaomi 4 роки тому +6

    This was an excellent course. Thank you for explaining the reason behind the code to bring all the concepts together. I've paid for courses that were not this well thought out. Awesome job!

    • @CodAffection
      @CodAffection  4 роки тому

      Thanks for the wonderful feedback.

  • @jackfrost8969
    @jackfrost8969 3 роки тому +5

    if you are using .net core 3 then you will need these two extra packages:
    Microsoft.EntityFrameworkCore.SqlServer -> to use UseSqlServer
    Microsoft.EntityFrameworkCore.Tools -> to use migration commands
    It's a hassle with all these new versions. To save youself from potential errors just install these packages before beginning the tutorial.

  • @gaganmudvari1553
    @gaganmudvari1553 5 років тому +3

    thank you for this mvc core with EF core Crud operation. please make series of this mvc core . thanks alot for this. waiting for your complete series of this MVC core 2 series. god bless you. takecare

  • @mihaistoian_
    @mihaistoian_ 5 років тому +3

    Thank you very much!
    This video helped me pass my Web Applications Design lab exam.
    It is very hard to find a good and really helpfully video like this.
    Thank you again!

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

    Hi! Excelent tutorial. But I've a Question. What happend if I've a project with identity and alredy exist an authDBContext and SQL DB? we will work with separately DB and conext or we use de same DB with a new context?

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

      Not tried the same DB with multiple contexts. if you are using a single DB for both, it would be better not to create more than one DB context. might be a problem with the concurrent operation (not sure).
      If you are keeping separate DBs, then you must need two separate contexts. you can avoid mixing identity tables with yours. but you also need to consider the expense it comes with - cost, ram usage, separate backup schedule, etc.
      Use one DB and one context if you developing a smaller application. if you don't want to mix the table with identity and you are fine with extra works, you can have two DBs.
      Following StackOverflow, Answers might be helpful.
      stackoverflow.com/a/24712033/4133590
      stackoverflow.com/a/50379005/4133590

  • @azadabdullahshaheed
    @azadabdullahshaheed 5 років тому +1

    ASP.NET Core MVC and ASP.NET Core Razor are the same? Can I only learning ASP.NET Core MVC?

  • @MauroBernal
    @MauroBernal 4 роки тому +1

    Hi. You are best!! One question: I usually have the result of the entity framework in one layer (AppData), then the CRUD in a different layer (Models), and in the controller call the model to perform the actions of the Crud. This allows me to separate the logics, and not give it a function that does not correspond to the controller such as directly calling the context such as to delete the record. In the same way then I can call the model from another controller, which saves me code. Now I see your video, and from experience I see that many programmers put the CRUD in the controller. Wouldn't this be wrong?

  • @venkateshsana889
    @venkateshsana889 5 років тому +1

    i am not using any sql servers in my local pc. now while creating the DB we are unable create the tables so which DB we have to prefer according to the above video and what DB we have to install for the mvc

  • @milyyybarrrr9216
    @milyyybarrrr9216 4 роки тому +4

    Thank you very much!!! I would be very happy if you were my teacher! You explain very well and you follow the logic of code construction. Continue to do like this!

    • @CodAffection
      @CodAffection  4 роки тому

      Glad I could help!
      Thanks for your wonderful feedback.

  • @مطورويب-ش7د
    @مطورويب-ش7د 5 років тому +11

    Thanks a lot . we need more in .net core and angular

    • @CodAffection
      @CodAffection  5 років тому +3

      sure. I'm working on it.

    • @ShivamSingh-wh9jj
      @ShivamSingh-wh9jj 5 років тому

      @@CodAffection I'm waiting for it

    • @CodAffection
      @CodAffection  5 років тому +1

      @@ShivamSingh-wh9jj don't you get the notification about my yesterday video - angular inline table editing

    • @ShivamSingh-wh9jj
      @ShivamSingh-wh9jj 5 років тому

      @@CodAffection Oh sorry 😅

  • @sourabhpanchal9819
    @sourabhpanchal9819 5 років тому +1

    This tutorial is awesome .... please record full .net core tutorial session .. Thanks a lot for this tutorial

    • @CodAffection
      @CodAffection  5 років тому

      Glad you found the tutorial helpful.

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

    Evening this video was so insightful thank you very much. I’m working on a school project we’re required to develop a well functioning system. I’ve come across an an error that says “the model item passed into the ViewDataDictionary is of type ‘practiceECD.Program’ but this ViewDataDictionary instance requires a model item of type ‘practiceECD.Models.Program’
    Can you please help me solve this error

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

    Super explained. Thanks for the great effort!
    Would like know if the font-awesome has autocomplete & preview in VS 2019 ?

  • @raymondorenda7385
    @raymondorenda7385 4 роки тому +1

    Nice Video there. Please upload videos on ways to add new column or delete one dynamically with MVC without having to recode the view model.

  • @nirajzambad7142
    @nirajzambad7142 4 роки тому

    Hi Sir, I am very good at Asp.net c#, HTML , SQL Server but now i want to learn Asp.net core. I don't know abcd of MVC and .net core so my question is does it require ASP.NET MVC before starting .NET CORE? If not required, please tell me the process i must follow to learn .Net Core in fast and easy way. I tried to look into your video, tutorials from your website but not getting controller and other few concepts. Please let me know

    • @sebastiancadena485
      @sebastiancadena485 4 роки тому +1

      You can create a simple Hello World console application tha doesn't use MVC pattern. Follow this link: docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio

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

    Please keep making videos, This helps a lot. Thank you

  • @Foodie363
    @Foodie363 5 років тому +1

    Code affection u r legend! and those who are using Core 3.0 guys u need to install Microsoft.EntityFrameworkCore.Tools at nuget package mangers

  • @bhaskarmanna8077
    @bhaskarmanna8077 4 роки тому +1

    thank you so much sir, this is an awesome tutorial on .net core

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

    thanks! sir for the awesome very useful video on asp.net ef core, very clear and immaculate presentation

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

    Thanks for the tutorial it was very helpful. If I need another entity in the same project called "Student" should I create a StudentContext similar to Employee Context?

  • @roshanzaid765
    @roshanzaid765 4 роки тому

    This man is marvelous.

  • @SYO1Star
    @SYO1Star 5 років тому +2

    Hey I think the create database part, you jump into the "microsoft SQL Server Management Studio" without showing how you actually connect to that?

    • @peytonnaomi
      @peytonnaomi 4 роки тому

      He covered how to connect to SQL server near the beginning of the video around the 12 min mark

  • @BladeSlayerr
    @BladeSlayerr 5 років тому +1

    You've possibly saved my project :).
    i tried to do this using your other video on MVc Framework, but i was so confused on what to do and where.
    thank you so much.

    • @CodAffection
      @CodAffection  5 років тому

      thanks for your wonderful feedback.

  • @elhaftaabdelaziz7272
    @elhaftaabdelaziz7272 5 років тому +3

    Awesome tutorial thank you , can you publish Asp.Net Core MVC Web App CRUD with EF Core
    and modal bootstrap ??

  • @МаксИльин-в3ф
    @МаксИльин-в3ф 5 років тому

    Hi, I have a question: is there or will there be an example where only the administrator can edit or delete the created entries, such as in this video? ty

  • @prometec4828
    @prometec4828 4 роки тому

    Dropdownlist in this form will be great. I have many doubt about o dropdonlist in asp net core. Please help us.

  • @uwebraun8893
    @uwebraun8893 4 роки тому

    Beautiful clarity

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

    Thankyou so much, one of the best tutorial out there.

  • @loveyoukrishna2410
    @loveyoukrishna2410 5 років тому

    Thanks for such a great video . At 8.00 you have told only code first approach is available for ef core, i think we can use db first approach too.

    • @CodAffection
      @CodAffection  5 років тому

      sorry for that. thanks for watching and commenting the video.

  • @AdityaSingh-yb3ii
    @AdityaSingh-yb3ii 3 роки тому

    Wonderful explanation. Thank you

  • @ShivamSingh-wh9jj
    @ShivamSingh-wh9jj 5 років тому

    ASP.NET or ASP.NET Core which is best? Why?

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

    One of the bests. Thanks

  • @maksimoski
    @maksimoski 5 років тому

    Can we use the same db as you?

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

    Guys, the delete function was run via the get method. Isn’t that very unsafe?

  • @AshProgHelp
    @AshProgHelp 5 років тому

    very helpful video. clear to understand.

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

    Hi,
    Thanks for that useful & helpful content.
    But I have one question; while adding Employee.Controller (scaffholding) in 23:30; It always comes up with error "Package restore failed. Rolling back package changes...". I tried some online solutions but nothing worked out hence I am still stuck at that point. If you may help in that It would be great.
    Thanks again.

  • @kjin3826
    @kjin3826 4 роки тому +1

    Thank you so much for the good tutorial! Keep up the awesome work

  • @shubhamkGupta
    @shubhamkGupta 4 роки тому

    Hi,
    I really appreciate your efforts and love to learn.
    I request you to please upload some videos using macOS and VS2019 to build an asp.net core or asp.net MVC application.
    As I am using macOS and there is so much different from windows.
    I cannot use the MSSQL in macOS.
    please do the needful... waiting for your positive reply...
    Thank you in advance!

  • @MrWasap.
    @MrWasap. 4 роки тому

    in the controller, if i want to create a method to return a filter register. how i can do it? ill try .where(p => p.idOthers == id) id is from parameter.

  • @agustinmoragues191
    @agustinmoragues191 4 роки тому

    Great video man! You helped me understand the basics of Injection!!! Is there any exercise book you recommend me for practising?

  • @DChristop
    @DChristop 5 років тому

    Nice tutorial. I want to ask something. I have a lot of fields and I want to move the table so close to left side. How possible is??? Thanks btw.

  • @nournote
    @nournote 5 років тому +2

    Again, very instructive. Just excellent!
    Can you please another project with:
    - roles and permissions management, preferably Active Directory based as it is the most in use in corporate environment
    - master-detail
    Thanks again.
    PS. A cup of coffee :)

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

    Good explaination thank you

  • @МаксЛеонов-е6ж
    @МаксЛеонов-е6ж 2 роки тому

    Impressive, very nice.

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

    AddorEdit function is really useful.

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

    When I tried creating a asp.net core application, the page where we need to select MVC did not show to me. As an alternative, what can I do?

  • @ammarmahmoud4422
    @ammarmahmoud4422 5 років тому +17

    Can you share video haw to create USER with permission roles

  • @mettlus
    @mettlus 4 роки тому

    What about if you have an existing Db

  • @cedricparfait4854
    @cedricparfait4854 4 роки тому

    Really Helpful thank you very much for this clear explanation, hope for more videos

  • @tuck582
    @tuck582 5 років тому +3

    Why no HTTPS when creating the project? Just curious.

  • @frankponte7261
    @frankponte7261 5 років тому

    Excellent! You helped me to begin work with this framework. Thank you!!!!

    • @CodAffection
      @CodAffection  5 років тому

      thanks for the comment. glad you found it helpful.

  • @zeuz3961
    @zeuz3961 4 роки тому

    Any similar tutorial but Database approach first?

  • @savyayadav191
    @savyayadav191 5 років тому +1

    Thank you so much for this video. it's awesome for MVC beginners.

    • @CodAffection
      @CodAffection  5 років тому

      glad you found the video helpful.

  • @hiraawan3430
    @hiraawan3430 4 роки тому

    great video. I created my first project so easily..

  • @MrMubasit
    @MrMubasit 5 років тому

    Excellent Tutorials . its Simple to understand nice work May God bless you. May we build complete simple website with some basic functionalities using Asp Core.

    • @CodAffection
      @CodAffection  5 років тому

      I will try that with a practical example.

  • @psawyer871
    @psawyer871 5 років тому

    Can you please show us how to make user authentication after we already have a database? So how to populate a User table in an existing DbContext, using the authentication mechanism, pleasee!

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

    Can you please do a tutorial on how to do a similar application, but also with deploying it to Azure? I am stuck on how to take database + CRUD app and move it into Azure so it can be viewed online.

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

    Thank you soo much

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

    Thanks for the video.

  • @muralidharan4437
    @muralidharan4437 5 років тому +2

    thanks for the Awesome Tutorial

  • @trustingod0
    @trustingod0 5 років тому +1

    Good Tutorial. I was wondering what is the difference between using Asp.Net Core and using Angular as your UI or front end? Also could you do a tutorial using Blazor, I know it is not mature for production. Thanks !

  • @MrMaksuz
    @MrMaksuz 5 років тому

    Question: When user click on edit, AddOrEdit action will send employee object to the AddOrEdit view right ? how does AddOrEdit view knows how to insert data in form fields ?
    also how do we get user id when we first click ? i dont get this asp-route-id="@item.EmployeeId" line...
    thx upfront

    • @MrMaksuz
      @MrMaksuz 5 років тому

      how i see it:
      //Click -> id(tableItemField) -> AddOrEdit -> View(Employee[id] -> AddOrEdit*view -> (use Employee instance ojb) fill data.
      //Submit -> AddOrEdit*action -> bind data from fields -> to Employee obj -> save...
      How does controller know when to use AddOrEdit(int) and when to use AddOrEdit(Employee)... ?

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

    Hey, I am getting the below error while running the command "Update-Database"
    "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

  • @smirceageorge5057
    @smirceageorge5057 5 років тому +2

    Real nice mate! I appreciate your videos a lot!

  • @sujeewanandhsathasivam5239
    @sujeewanandhsathasivam5239 5 років тому +1

    Thank you and all the best!

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

    On adding emoloyeeController views with EF.. it shows error ''couldnot load file or assembly Microsoft.bcl.asyncInterfaces "?? Can u please help me out

  • @osempo
    @osempo 5 років тому

    Thanks a lot, well explained and very wasy to understand. Im now subscribed and hope you upload some more ASP.NET Core tutorials.

  • @saifchamsi8412
    @saifchamsi8412 4 роки тому +2

    Thank you so much we want more content with this quality

    • @CodAffection
      @CodAffection  4 роки тому +2

      sure.

    • @DmitriMironov
      @DmitriMironov 4 роки тому

      @@CodAffection I'd like to thank you so much. For sharing this onformation. Please keep recording new videos. I follow your tutorials and put the project on a github

  • @lukehoKim
    @lukehoKim 5 років тому +1

    Very NICE tutorial. Thanks a lot.

    • @CodAffection
      @CodAffection  5 років тому

      Glad you found the video helpful.

  • @tombradley6921
    @tombradley6921 5 років тому

    @CodAffection your tutorial is very good, may i know how long you mastered angular, mvc .netcore or any web development? I'm a newbie programmer, therefore sometime i'm doubt myself if i could be mastered web development like you

    • @CodAffection
      @CodAffection  5 років тому

      I think for past 3 years.
      thanks for the wonderful feedback!

  • @omarbousbia6916
    @omarbousbia6916 5 років тому +2

    thank you so much, good and simple and straight forward tutorial

    • @CodAffection
      @CodAffection  5 років тому

      thanks for the comment .let me know if you have any video suggestion in asp.net core.

  • @ahmedshaabanelbehairy8417
    @ahmedshaabanelbehairy8417 4 роки тому

    I love all of your tutorials, You Have a great Work, Thank You

  • @gandhisanket16
    @gandhisanket16 4 роки тому

    This is very usefull example, Can you show me same example with master and details database.

  • @tuck582
    @tuck582 5 років тому

    Why not build models, then scaffold with reference to the context, and then migrate/update via that context? Most of what you did in the first 20 minutes is done automatically if that convention is followed. It will build DB, update Db via context, modify appsettings, and I believe it modifies Startup too. Are you trying to avoid automation to better demonstrate dependency injection?

    • @CodAffection
      @CodAffection  5 років тому

      yes I was trying to show what actually happens during DI.

    • @tuck582
      @tuck582 5 років тому

      @@CodAffection I see, you did a perfect job in that case! Just wanted to make sure. Thank you for publishing your videos. There are not many .Net/Angular experts with good content on UA-cam :)

  • @manolisgkoulias8290
    @manolisgkoulias8290 4 роки тому

    Man your videos are great!

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

    I had a issue in icons its not displaying .....

  • @shauncs
    @shauncs 4 роки тому

    Simply explained. Appreciate your effort. Thanks!

  • @omarayub1295
    @omarayub1295 5 років тому

    Brilliant Good Going bro...learned a lot thanks.......

  • @vikaswilliam3407
    @vikaswilliam3407 4 роки тому

    nice video...will try it soon..

  • @daalwada
    @daalwada 4 роки тому

    Great Explanation sir!

  • @shalukrishnan5446
    @shalukrishnan5446 5 років тому

    Great job ...Sir can you describe and give example of ViewModel and Repository in MVC core using Database first approach

  • @al3body
    @al3body 4 роки тому

    شكراً جزيلاً

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

    At 12:39 Can I add 'localhost' as Server ???

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

    How to implement ADFS SAML Assertion Consumer with Redirct binding in .net core razor pages application? Please help

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

    Very nice video, I tried to perform with .net core 3.1, but when I am trying to add Controller with view in same manner in video its throwing an error "There was an error running the selected code generator:'package restore failed.Rolling back package changes for 'ProjectName' " can anyone help for this??

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

    you Great Man Thank you so much

  • @rayenoueslati8824
    @rayenoueslati8824 4 роки тому

    it worked perfectly , thanks a lot

  • @honeesh1
    @honeesh1 5 років тому +1

    Thank you so much
    Again thank you from the depths

  • @dkyosk7501
    @dkyosk7501 5 років тому

    This is a great tutorial, thanks. As a follow up, can you show how to do identity and token-based authentication that may involve web api or just asp.net core identity?

    • @CodAffection
      @CodAffection  5 років тому

      already done that with asp.net web api and angular
      sign up : ua-cam.com/video/h85_GT62K6A/v-deo.html
      sign in : ua-cam.com/video/e8BlURn6SFk/v-deo.html
      may be I'll do that with asp.net core web api. I'm not sure about the schedule.

    • @dkyosk7501
      @dkyosk7501 5 років тому

      @@CodAffection thanks, doing it in asp.ner core will be great, the angular 5 approach has a deprecated {Response}.

  • @cariyaputta
    @cariyaputta 5 років тому

    Thanks you so much. You're a savior!

  • @agustinmoragues191
    @agustinmoragues191 4 роки тому

    Watchout on 19:37. I think it is an edition mistake. The 'TypeName' suddenly disappears. Must go on each attribute.

  • @nickeax
    @nickeax 5 років тому

    Thank you very much CodAffection, you have been a huge help!

  • @amitkishor7338
    @amitkishor7338 4 роки тому

    video is good, but why you don't use dropdown list checkbox list radio button list plz use all those HTML controls and make CRUD Operation

  • @hakannyildirim
    @hakannyildirim 5 років тому +1

    You are big man Thnaks For all.

  • @davidwolfhart
    @davidwolfhart 5 років тому

    Thank you for your great tutorial.

  • @mubassiruddinfurqhan187
    @mubassiruddinfurqhan187 4 роки тому

    even after getting nuGet package Microsoft.EntityFrameworkCore.Tools, when I iplement the concept shown at 20:58 I see this
    PM> Add-Migration "InitialCreate"
    Build started...
    Build failed.
    PM>