.NET EFCore | Publish your Web API and SQL database to Azure Service using Visual Studio ONLY

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

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

  • @Netcode-Hub
    @Netcode-Hub  Год назад +1

    Follow @Netcode-Hub on:
    netcodehub.blogspot.com
    github.com/Netcode-Hub | Grab projects source code from here.
    twitter.com/NetcodeHub | Twitter
    web.facebook.com/NetcodeHub | Facebook
    www.linkedin.com/in/netcode-hub-90b188258/ | LinkedIn

  • @dilrukshiperera-yo5br
    @dilrukshiperera-yo5br 3 месяца назад

    thankyou. I made some use of this tutorial.

  • @HieuNguyen-un4bb
    @HieuNguyen-un4bb Год назад +1

    nice video bro! But i have an question. When i click finish on 8:31 , i get 3 errors :
    - NuGet.PackageManagement.PackageReferenceRollbackException: Package restore failed. Rolling back package changes for 'MagicPost_BackendAPI'.
    - Failed to configure NuGet packages.
    - Failed to configure dependency Azure SQL Database mssql1.
    i don't understand why cause i do it same as you do. Can you explain for me if u know that! Thank u so much

  • @YasirandM
    @YasirandM День назад

    Don't show swagger on my app deployed. i Change swagger middleware from development to production but its not working

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

    good tutorial man, it would be great if you could explain how to connect the azure sql db to sql server managment studio

    • @Netcode-Hub
      @Netcode-Hub  Год назад

      Alright sir, will see to that😀

  • @lirovink
    @lirovink 8 месяцев назад

    Thank you so much for this video man! I was looking for ages for an answer to show the Swagger (now OpenAPI) page on my web app until i came across this video.
    Just a quick question - how come the database is empty if we choose to include the dbContext from our application? did i miss something from your explanation?

    • @Netcode-Hub
      @Netcode-Hub  8 месяцев назад

      Did you publish your database to azure?

    • @lirovink
      @lirovink 8 месяцев назад

      @@Netcode-Hub Yes of course
      When I executed show all data GET command, I was presented with an empty array
      After adding data using the ADD command, I saw the new data I saved displayed instead of the empty array.
      I have another question. I have a registration function with which I register new users, and then a login function with which I get a JWT to authenticate and send CRUD commands. Is there a way to use the token that I get through SWAGGER, or do I have to work only with the help of POSTMAN for example?

    • @Netcode-Hub
      @Netcode-Hub  8 месяцев назад +1

      @lirovink yes , you can add authorization feature to swagger . Check playlist, have couple of videos to assist you. You can also mail me for special assistance.

    • @lirovink
      @lirovink 8 месяцев назад

      @@Netcode-Hub Thank you man. I am lost, can you please direct me to a specific video about the subject? much appreciation

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

    this error shown in the step entity framework migration
    dotnet tool install dotnet-ef
    The tool package could not be restored.
    Tool 'dotnet-ef' failed to install. This failure may have been caused by:
    * You are attempting to install a preview release and did not use the --version opt
    * A package by this name was found, but it was not a .NET tool.
    * The required NuGet feed cannot be accessed, perhaps because of an Internet co
    * You mistyped the name of the tool.
    For more reasons, including package naming enforcement,

    • @Netcode-Hub
      @Netcode-Hub  Год назад +1

      Use this instead
      dotnet tool install --global dotnet-ef

  • @ReadLineAcademy
    @ReadLineAcademy 8 месяцев назад

    Thanks sir❤️❤️

  • @crepinoscript12
    @crepinoscript12 2 месяца назад

    I am using a MySQL database, and in the API, I have configured token generation and role-based authorization before accessing an API route. Could this tutorial apply to my system? PLEASE

    • @Netcode-Hub
      @Netcode-Hub  2 месяца назад

      Absolutely

    • @crepinoscript12
      @crepinoscript12 2 месяца назад

      @@Netcode-Hub i tried to do that but microsoft azure service is not available in my country unfortunetly i can"t create an account 💔,can you please show me another way to publish my API ?

  • @محمد-ع4ث2ق
    @محمد-ع4ث2ق 4 месяца назад

    can i use postgresql insted of sql server ?

  • @stark5131
    @stark5131 3 месяца назад

    what is cost for this ??

    • @Netcode-Hub
      @Netcode-Hub  3 месяца назад

      Are you talking about azure hosting service ?

  • @leandroangeldzibnauat4427
    @leandroangeldzibnauat4427 5 месяцев назад

    Don't show swagger on my app deployed

    • @Netcode-Hub
      @Netcode-Hub  5 месяцев назад

      Check your program setting
      Change swagger middleware from development to production or comment it.
      Have you don’t that already ?

    • @dznleandro
      @dznleandro 5 месяцев назад

      Yeah, I commented the if of development mode, thanks 🎉

    • @Netcode-Hub
      @Netcode-Hub  5 месяцев назад

      @dznleandro welcome 🤗