ASP .NET 6 CORE Database First CRUD with EF Core in MVC using Visual Studio 2022

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • Learn the basics and advanced features of .NET Core (.NET 6)
    and then build a DBFirst CRUD application with MVC in this tutorial.
    From this Video You will learn
    1. What is .NET 6?
    2. What is Database First Approach?
    3. Why and when we should use DBFirst Approach of EFCore.
    4. Then We will be Creating a ASP.NET Core MVC CRUD application in DBFirst Approach using EFCore.
    5. You will learn in detail about the importance of the command Scaffold-DbContext.
    6. we will be Generating DBContext and Models using the Scaffold-Dbcontext command.
    7. Creating CRUD Operations using DBFirst Approach.
    8. Adding Pagination feature to the CRUD.
    9. Adding Search Options to the Crud.
    Lets see what is .Net 6.
    .NET 6 is the development platform to create any kind of application
    for any platform. With the release of .NET 6, Microsoft consolidates
    its plan to create a unified platform to develop applications for
    any device and operating system.
    With .NET 6, you can really create the application you want
    and run it practically everywhere: from desktop to mobile and
    from the web to the cloud.
    Together with this vision, .NET 6 brings many new features
    aiming to simplify development and gain performance.
    The vision of a unified platform for the .NET world started
    with .NET 5. thats why they renamed .net core as .net 5 earlier.
    and no more .net framework, I mean windows only framework
    will be released.
    We will also see what are new cool features of Visual Studio 2022
    like Global Usings, Implicit Usings, New Namespace syntax, Hot Reload,
    Program.cs etc.
    we will see much more in the Video. so please watch the
    video and give your Valuable comments.
    Best Regards,
    -Aniz
    Db first CRUD .net 3.1 version
    • Entity Framework Core ...
    Code First .Net 3.1 Version.
    • AJAX asp.net core 5 MV...
    Code First Pagination Video Link
    • asp.net core MVC crud ...
    Inventory Software Playlist.
    • Asp net core 5 MVC Tut...

Комментарии • 57

  • @Srhuicho
    @Srhuicho Год назад

    Great video! Short, concise and very usefull. I made it for MySQL. Thanks so much!

  • @franklint8301
    @franklint8301 2 года назад

    Thank You. Very Nice video. and detailed explanation about the new features of net6.

  • @IPanonima17
    @IPanonima17 Год назад

    you just saved me and my work. thanks a lot my dude.

  • @khaledfwzy32
    @khaledfwzy32 2 года назад +1

    Thank you ...very useful video on dotnrt6 and a new changes in that version...we need one vide for fulll project with dal and reprostry concept...thanks

  • @sunilkarki6013
    @sunilkarki6013 2 года назад +1

    Thank you great tutorial

  • @priyadarshini6945
    @priyadarshini6945 2 года назад

    Very Nice Work, Please make more videos. Thank You.

  • @tripore
    @tripore Год назад

    Userful and nicely commented. Thank you

  • @bassethoundgang2800
    @bassethoundgang2800 2 года назад

    Real good video! I appreciate the time you have put into this and it is very helpful.

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      You're very welcome! Keep following the channel.

  • @jhonatanlyly
    @jhonatanlyly 2 года назад +1

    Excellent

  • @MrKhajavali
    @MrKhajavali 7 месяцев назад

    Hi, is there a video related to using/calling a stored procedure in DB first concept in EF
    core project ?

  • @anasalhariri5474
    @anasalhariri5474 2 года назад

    Looooove your videos. Please keep it up! ❤‍🔥❤‍🔥

  • @asgeralia8802
    @asgeralia8802 2 года назад

    superb superb superb.....

  • @nikul6858
    @nikul6858 Год назад

    awesome

  • @lakshmansamanth
    @lakshmansamanth Год назад

    what if I want to add a new table say Orders in same db after completing of above steps in package manager console for customers ? Do I have to add directly in sql server db with query or should I implement using the same steps again and again if i want to create new table everytime ??

  • @lyndakaufmann4670
    @lyndakaufmann4670 Год назад +1

    how can I get the souce code?

  • @asgeralia8802
    @asgeralia8802 2 года назад +1

    I hv watched your video, but i feel myself that y can't there is no vs 2022. But now i m very happy on seeing this video. Kindly forward all video links for vs 2022

  • @AstorSkywalker
    @AstorSkywalker 2 года назад +1

    Thank you Sir, best video I've seen on the topic. One question, how do you create a dbcontext for Oracle Database? There seems to be no method .UseOracle in Oracle.EntityFrameworkCore, I might be wrong. Btw, thank you for the source code!

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад +1

      You are Most welcome.

    • @AstorSkywalker
      @AstorSkywalker 2 года назад +1

      I found this myself...
      the method I needed .UseOracle is found in the namespace Microsoft.EntityFrameworkCore

  • @user-em3vn8rs5m
    @user-em3vn8rs5m 2 года назад

    Hello! Do you have a project video for linked tables? In my project on Net Core 6, data is not added to the linked table.

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      Please refer this.
      ruclips.net/video/-BM3-MpMtXA/видео.html
      Master Detail entry form using Advanced JavaScript CSS ASP.NET CORE MVC

  • @asgeralia8802
    @asgeralia8802 2 года назад +1

    [Required(ErrorMessage = "Required")]
    [DataType(DataType.EmailAddress)]
    y miss datatype thats y not create in your coding

  • @hugovazquez2
    @hugovazquez2 2 года назад

    nice

  • @samuelibironke2032
    @samuelibironke2032 Год назад

    Great videos tutorial. please how can restore the DBfirstCrud2022.bak because i am using 2017 MSSQL Database.

  • @asgeralia8802
    @asgeralia8802 2 года назад

    sir pls release a video for dynamic pager, it would be very helpful

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      Sure, Will Do. Thanks for Watching.

  • @mohammedhussain9328
    @mohammedhussain9328 2 года назад

    Thanks, Very Nice Explanation. Can you show how to restore the database file.

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      You are welcome. Please see the next video of this series.

  • @vikramvijaybardhan7870
    @vikramvijaybardhan7870 2 года назад

    Thank you sir. Very helpful video. where to get zip file for db so that i can restore and work on that , it will save my time. thank you once again!

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      You are Most welcome.
      source code and DB URL shown in this video ruclips.net/video/gBHY0Jt8ZjQ/видео.html

  • @RamzesHQ
    @RamzesHQ 2 года назад

    can give me pager.cs and pager.cshtml codes?

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      this has the complete source code URL ruclips.net/video/gBHY0Jt8ZjQ/видео.html

  • @DelightZone2023
    @DelightZone2023 2 года назад

    Can you please provide the code link of this video...

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      The source code link is already shown in the video. please download from there.

  • @sandipshaw7268
    @sandipshaw7268 2 года назад

    Source code not found ?

    • @franklint8301
      @franklint8301 2 года назад

      Source code URL appears after 20:31

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      Please see the video without skipping. source code URL is active.

  • @lookatme2307
    @lookatme2307 2 года назад

    can u share ur project github link ? thanks

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      You are welcome,
      source code link is in the video and also complete source is shown in the video.

  • @Compuken1
    @Compuken1 2 года назад

    yes wot

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      hi, please don't put spam comments.

  • @graehmebracegirdle7393
    @graehmebracegirdle7393 2 года назад +1

    𝓅𝓇𝑜𝓂𝑜𝓈𝓂 😜

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      i did not understand what do you mean

  • @Compuken1
    @Compuken1 2 года назад

    nomt

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      hi, please don't put spam comments.

  • @Compuken1
    @Compuken1 2 года назад

    jaja

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      hi, please don't put spam comments.

  • @asgeralia8802
    @asgeralia8802 2 года назад

    Appsetting.json
    -------------------------
    sir i m very sorry, y can't u use AppSettting.json for connection syntax is
    "connectionString": {
    "DefaultConnection": "Data Source=DESKTOP-DA9CINK;Initial Catalog=db_test;User Id=sa;Password=123"
    }
    at the bottom of line and
    Program.cs
    ------------------
    var builder = WebApplication.CreateBuilder(args);
    string connection = builder.Configuration.GetConnectionString("DefaultConnection");
    // Add services to the container.
    builder.Services.AddControllersWithViews();
    builder.Services.AddDbContext(options =>
    {
    options.UseSqlServer(connection);
    });
    again sorry sir, bcz i learned lot from your video only.

    • @CodeSbyAniz
      @CodeSbyAniz  2 года назад

      the aim of this tutorial is to teach database first approach, so i want to make simple and i ignored the appsettings.json. i have a separate inventory program play list. please watch. it teaches everything from scratch.