How to Use Dapper in ASP.NET Core Web API

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

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

  • @bonkeselemani503
    @bonkeselemani503 3 года назад +2

    Prefere Dapper than EF, the freedom with Dapper 👌 😎

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

    Excellent work! Very clear and easy to understand.

  • @berkayozkay1647
    @berkayozkay1647 3 года назад

    Thank you for share this tutorial.

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

    Very Nice ! what about stored procedures ?

  • @coding-gemini
    @coding-gemini 3 года назад +1

    Very nicely explained thanks. Can you please post a video using dapper contrib which does not need us to write a sql

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

    thnx

  • @nikunj17484
    @nikunj17484 3 года назад

    Superb, please upload with blazor + dapper example.

  • @2005Azm
    @2005Azm 3 года назад

    Wonderful!

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

    How you can use store procedure with dapper??

    • @joaogabrielv.m328
      @joaogabrielv.m328 2 года назад

      You could do that way (console app example):
      // BookRepository
      public static void GetBooks()
      {
      using var connection = new MySqlConnection("yourConnectionString");
      var getBooksQuery = connection.Query("sp_select_all_books", commandType: CommandType.StoredProcedure);
      foreach (var book in getBooksQuery)
      {
      Console.WriteLine($"Book Author: {book.Author}
      Book Title: {book.Title}\Book Description: {book.Description}
      ");
      }
      }

  • @Meke86109
    @Meke86109 3 года назад

    Sql server developer or express.. Which i have to use. Bro

    • @TechWithPat
      @TechWithPat  3 года назад +1

      You can use both, Express is free though.

    • @Meke86109
      @Meke86109 3 года назад

      @@TechWithPat hi bro.. Can u create a video for how to login sql server and create admin, password, to create sql database and where we can find the data source of those database