DotNet Core Web API - ASP.Net Core Web API CRUD with Entity Framework Core

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

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

  • @CodingDroplets
    @CodingDroplets  Год назад +2

    ⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
    💥Host Your .NET Core Apps in Linux: ruclips.net/video/bXK-F-uL7Qo/видео.html
    Blazor Tutorial Series: ruclips.net/video/dY_AWdCzsCY/видео.html

  • @oddrews7706
    @oddrews7706 8 месяцев назад +2

    At around 20:05 i get this error "Severity Code Description Project File Line Suppression State
    Error CS1061 'IServiceCollection' does not contain a definition for 'AddDemoApiClientService' and no accessible extension method 'AddDemoApiClientService' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?) Demo.BlazorApp C:\Users\Audrius\Desktop\Database\Database\Demo.BlazorApp\Program.cs 11 Active" does anyone know a fix?

    • @CodingDroplets
      @CodingDroplets  8 месяцев назад +1

      Thank you for your comment! Make sure you've added the appropriate using directive or assembly reference in your Program.cs file. Additionally, ensure that the method AddDemoApiClientService is correctly defined in your service collection extension methods.
      If you're still experiencing issues, please double-check your code against the source code available at github.com/codingdroplets/DemoWebApi.

  • @sbjakhotya
    @sbjakhotya 9 месяцев назад

    please also Split Tutorial Video
    1] creating Tables at run time must be optional, we already have Data tables with right data type into DB.
    2] Actual API creation
    3] Calling API (may call in any other app type rather than Blazer so.)

  • @monstergiri2281
    @monstergiri2281 Год назад +3

    Thank you very much, this is a great help❤❤

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

      You're welcome! Glad to hear that. Thank you so much for your feedback.

  • @davidkim7812
    @davidkim7812 5 месяцев назад +1

    Amazing video!! learned a lot from this video. Thank you so much for your effort.

    • @CodingDroplets
      @CodingDroplets  5 месяцев назад +1

      Thank you for your feedback! I'm glad to hear that you found the video helpful.

  • @曼巴-z1t
    @曼巴-z1t 8 месяцев назад

    I know class ServiceCollectionExtension is to get appsetting parameter ApiBaseAddress,But I don't quite understand this writing style. Is there any introduction in this area? Or is there a more easily understandable way of writing

  • @sertunc-k5o
    @sertunc-k5o Год назад +2

    Thank you very much

  • @ThatsJoshTyler
    @ThatsJoshTyler 5 месяцев назад +1

    Would this work with Azure Cosmos DB given I have the correct Connection String?? Im gonna try it rn

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

      This approach should work with Azure Cosmos DB

  • @brooklynsaia409
    @brooklynsaia409 9 месяцев назад +1

    How do we find the connection string to add to our appsettings.json file?

    • @CodingDroplets
      @CodingDroplets  9 месяцев назад

      To find the connection string for your SQL Server database, you'll need to gather details such as the server name, database name, and authentication method with credentials. Once you have these, you can construct the connection string using a template and replace placeholders with the actual values. After adding the connection string to the appsettings.json file in your .NET Web API project

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

    thank you

  • @lavanyag812
    @lavanyag812 5 месяцев назад +1

    is this code first approach

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

      Yes, this tutorial uses the Code First approach with Entity Framework Core.

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

      Please yo have firstdatabase complex and using store procedure with using erp exixting

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

    how to get data from 3 table with relationship

    • @CodingDroplets
      @CodingDroplets  11 месяцев назад

      Retrieving data from three tables with relationships in a .NET Web API with EF Core involves performing a join operation in your Entity Framework query.

    • @idwerke1885
      @idwerke1885 11 месяцев назад

      @@CodingDroplets do you have sample or any guide. thank you

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

    Severity Code Description Project File Line Suppression State
    Error CS0234 The type or namespace name 'CreateBuilder' does not exist in the namespace 'WebApplication' (are you missing an assembly reference?) WebApplication E:\Projects\WebApplication\WebApplication\Program.cs 3 Active
    bro how to solve

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

      I think you have named your application as 'WebApplication'. Just try to rename your application or use 'Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder' (along with namespace) in your program.cs class.

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

      @@CodingDroplets thanks

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

      You are welcome!

  • @michaelchristensen8350
    @michaelchristensen8350 10 месяцев назад +2

    I have another error.
    When i try to launch the final app it doesnt show the list of products. I can verify that all my methods works as they should in swagger.
    But when Index.razor loads it get and unhandled exeption occured while processing the request.
    IN the Console I can see Failed to load resource: The server responded with a status og 500(internal server error)
    Please help a big newbiee I want to learn this tuff so much, but no matter where i look i run into these roadblocks :-)

    • @CodingDroplets
      @CodingDroplets  10 месяцев назад +1

      Thank you for reaching out, and I'm sorry to hear that you're encountering difficulties. Ensure that your Blazor application is correctly consuming the API endpoints and handling any potential exceptions gracefully. You can compare your code with the demo project from the tutorial, you can find it on GitHub at: github.com/codingdroplets/DemoWebApi

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

      I know its 8 months old but.... I had this today its your connection string, had to change it in several places.

  • @klondikexx2831
    @klondikexx2831 10 месяцев назад +1

    I am getting lost in the video, where you are migrating the SQL db. Are we supposed to have a SQL db of our own, or where did that come from ?
    Ok I understand more now, but Now it seems i have to setup remote access to SQL Server. Not sure how to do that.
    I get this error.
    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

    • @michaelchristensen8350
      @michaelchristensen8350 10 месяцев назад

      I found out that the auto generated class for constructing the dbo.product table had an error in it.
      my generated file was missing a parenthesis. when specifying the type it looked like this...
      price = table.Column(type: "decimal(7, 2", nullable: false)
      It should be like this instead...
      price = table.Column(type: "decimal(7, 2)", nullable: false)

    • @CodingDroplets
      @CodingDroplets  10 месяцев назад

      It seems like you have issue with your connection string. Please check whether you provided the connection string correctly.