C# Tutorial - Repository Pattern with C# and Dapper ORM | FoxLearn

Sdílet
Vložit
  • čas přidán 2. 12. 2020
  • We will discuss What is Repository Pattern Benefits of Repository Pattern. An example that uses repository pattern to store and retrieve data from SQL Server database using Dapper ORM in C# .NET Core Windows Forms Application.
    Natural Voice Text to Speech: bit.ly/3lvKtpz
    Website: foxlearn.com

Komentáře • 40

  • @TurntableTV
    @TurntableTV Před 3 lety +6

    Dapper is so underrated as an ORM. So easy to work with databases when you have such a great tool.

    • @foxlearn
      @foxlearn  Před 3 lety

      Thank you !

    • @TurntableTV
      @TurntableTV Před 3 lety

      @@foxlearn At this point I think you're just an AI.

  • @pablo1beroiza
    @pablo1beroiza Před 3 lety

    good tutorial @Fox Learn!!! Tnx!!!

  • @marcioalexandremarcondes557
    @marcioalexandremarcondes557 Před 9 měsíci

    Very nice!

  • @entemolu1
    @entemolu1 Před 3 lety

    I like this channel very much as there is no annoying sound and included only the essence of materials

    • @foxlearn
      @foxlearn  Před 3 lety

      Thank you so much !

    • @thisisnotajoke
      @thisisnotajoke Před 3 lety +2

      I politely disagree: I find the background music distracting, the strange "click" sound very annoying and the monotone computer voice is not good at keeping my attention focused on the topic (my mind tends to drift while watching this video)

  • @anadibrothers-yourwaytorel5259

    One question: Will it work with a later version of the Dapper?

  • @Ahmad_Hamdy_Hamdeen
    @Ahmad_Hamdy_Hamdeen Před 3 lety

    Thanks 👍👍👍👍👍

    • @foxlearn
      @foxlearn  Před 3 lety

      You're welcome. Thank you

  • @zeeshanahmad1240
    @zeeshanahmad1240 Před 3 lety

    Plz tell me any model of gsm or usb modem. Who supports c# for offline sms

  • @coolwaterdvr
    @coolwaterdvr Před rokem

    How to bind a combox using repository pattern?

  • @creatur
    @creatur Před 3 lety +1

    1.Can you please make a video about for the Processing time with progress bar.....
    2. Can you please make a chromium web browser in winform and teach how control it like selenium...
    Please🙏 reply

    • @foxlearn
      @foxlearn  Před 3 lety

      You can view czcams.com/video/p3trglnFZ9Y/video.html and czcams.com/video/ae1_6ELGVYw/video.html

  • @raminguliyev1520
    @raminguliyev1520 Před 3 lety +2

    Make some videos for coding bot(whatsapp,instagram,etc) please

    • @foxlearn
      @foxlearn  Před 3 lety +1

      Thank you for your suggestion !

  • @creatur
    @creatur Před 3 lety +1

    Cam you please make a video of making application config for settings and database and some buttons for disable and enable by that config

    • @foxlearn
      @foxlearn  Před 3 lety

      You can view this video. czcams.com/video/-KdqdWTNO7Q/video.html

  • @nganle2967
    @nganle2967 Před 3 lety

    Can you configure dependency injection (DI) for winform, plz make some videos for that

    • @foxlearn
      @foxlearn  Před 3 lety +1

      OK. Thank you for your suggestion. I'll upload soon.

  • @CezarLisboa1990
    @CezarLisboa1990 Před 3 lety

    No caso, é melhor ter a camada Business antes da Repository 👍

  • @clidton
    @clidton Před 3 lety

    How i can implement this in product repisotory and call this function on grid? because i have 1 million products in db and id1 parameter is mention execute all products query from stored procedure
    public async Task GetProducts()
    {
    using (IDbConnection db = new SqlConnection(SqlCon.ConnectionString))
    {
    if (db.State == ConnectionState.Closed)
    db.Open();
    var result = await db.QueryAsync("sp_Product", new { id1 = 3 },
    commandType: CommandType.StoredProcedure);
    return result.ToList();
    }
    }

    • @foxlearn
      @foxlearn  Před 3 lety

      var result = await db.QueryAsync("sp_Product", commandType: CommandType.StoredProcedure); for get all

    • @clidton
      @clidton Před 3 lety

      @@foxlearn thanks for reply but i found the solution and solution is in interface change the implementation like this Task GetAllProducts();

  • @SriHariVasamsetti
    @SriHariVasamsetti Před 3 lety

    How to compatible visual studio 19 .net 5 to .net 4

  • @jonathangumapac9965
    @jonathangumapac9965 Před 3 lety

    please help me how to save image in database

    • @jonathangumapac9965
      @jonathangumapac9965 Před 3 lety

      in c# visual studio 2019

    • @foxlearn
      @foxlearn  Před 3 lety +1

      You can view this video czcams.com/video/Is7INDgHuX4/video.html . I uploaded

    • @Pegie98
      @Pegie98 Před 3 lety

      I want to loop my datagrid using that method.

    • @foxlearn
      @foxlearn  Před 3 lety

      Can you describe more details? Not clear your intention

    • @Pegie98
      @Pegie98 Před 3 lety

      @@foxlearn I have a sql stored procedure then i want to view in a in the datagrid with selected column then i want to group that in a datagrid. hope you understand my intentions hehehehe thank you.
      PG_98

  • @5pirithief
    @5pirithief Před 3 lety

    You need to be carful when opening connections to the database. You need to at least wrap that IDbConnection with a using to dispose it once your done with it.
    Great video!