Learn Dapper in an Hour! (.NET Core 5)

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 66

  • @saadmalaeb8372
    @saadmalaeb8372 3 ปีที่แล้ว +61

    Dapper starts at 42:00

    • @babakkhoshnevis7152
      @babakkhoshnevis7152 3 ปีที่แล้ว +7

      Golden Comment.

    • @shahzeb5130
      @shahzeb5130 3 ปีที่แล้ว +3

      Very late to see your comments...

    • @ss_GOAT
      @ss_GOAT 3 ปีที่แล้ว +3

      I saw your comment too late

    • @andiledumakude6135
      @andiledumakude6135 2 ปีที่แล้ว +1

      Thank you

    • @StephenBeale
      @StephenBeale 2 หลายเดือนก่อน

      so really the title should be 'learn dapper in 18 minutes' 🤣

  • @virtualdars
    @virtualdars 3 ปีที่แล้ว +8

    Thanks for the informative video. Good job.
    Correction in 49:26. Vulnerable to "SQL Injection" not "dependency injection" attacks.

  • @jacobstamm
    @jacobstamm 2 ปีที่แล้ว +1

    Great tutorial, Bhrugen! You're absolutely right at 48:56 about always using parameterization to avoid SQL injection vulnerabilities, but just to be clear, it's only a vulnerability when the data you're appending has the ability of returning something that SQL could misinterpret. In this case, you're appending an int. There's no value of int which when converted to a string would be mishandled by SQL Server, so there's no risk here. On the other hand, if the id param were a string, then you'd be right, because the user might pass in something like "0; DROP TABLE Companies;"
    Again, it's better to just always use parameterization like you said, but I just want anyone who's curious to have a deeper understanding of what specifically makes something vulnerable to SQL injection.

    • @DotNetMastery
      @DotNetMastery  2 ปีที่แล้ว

      Indeed!

    • @vl-yj3gb
      @vl-yj3gb ปีที่แล้ว

      thank you so much for the explanation

  • @bmiquelin
    @bmiquelin 3 ปีที่แล้ว +21

    Title says how to use dapper, but must of the video shows how to use EF Core

  • @Galakyllz
    @Galakyllz 3 ปีที่แล้ว +8

    Dapper install at 42:00 and using it at 46:00
    The Company class implementation is at 15:00

  • @paulkeating9259
    @paulkeating9259 2 ปีที่แล้ว

    Bhrugen I reallly enjoy your teaching style and you have helped me so much already with my learning journy into C# ! Thanks for being awesome!

    • @DotNetMastery
      @DotNetMastery  2 ปีที่แล้ว

      Thank you so much for the wonderful feedback!

  • @prisy6c-1-aavanisatheesh39
    @prisy6c-1-aavanisatheesh39 3 ปีที่แล้ว

    Good Tutorial.As a beginner of dapper and an experienced of EF,I can say it was very much helpful to understand the exact changes also.
    Thank you

  • @jethronong2076
    @jethronong2076 4 ปีที่แล้ว +3

    Quality Video....Would love a series of this advancing more into Dapper

  • @SowmiyaChandrasekar14
    @SowmiyaChandrasekar14 3 ปีที่แล้ว +2

    Pls post dapper full course sir

  • @gokhanatlgan6030
    @gokhanatlgan6030 3 ปีที่แล้ว

    Oh, thats good. Entity Framework is very bad for performance. Update is sucks with EF, I like typing sql queries myself. Yes it's hard sometimes but, everything is only my hands.

  • @xanaducsp
    @xanaducsp 2 ปีที่แล้ว

    it is posible use a Transaction?, do yo have an example?

  • @jaypot
    @jaypot 3 ปีที่แล้ว +3

    At 49:00 by "dependency injection attacks" I think you meant "sql injection attacks"

    • @ronchennai
      @ronchennai 2 ปีที่แล้ว

      I was about to comment the same, and wanted to see just in case if any one else has caught it, and there you have !!

  • @AlThePal78
    @AlThePal78 2 ปีที่แล้ว

    Which you do you prefer Mr. Patel?

    • @DotNetMastery
      @DotNetMastery  2 ปีที่แล้ว

      Dapper for large scale project! Hands down

    • @AlThePal78
      @AlThePal78 2 ปีที่แล้ว

      @@DotNetMastery what is considered a large scale?

  • @ijazkhan-mq4jy
    @ijazkhan-mq4jy 3 ปีที่แล้ว

    Realistic video thanks

  • @almrhabii
    @almrhabii ปีที่แล้ว

    hi . have you explain register and login in dapper environment >>

  • @Hoang_Aluminium
    @Hoang_Aluminium 3 ปีที่แล้ว

    Can you share Dapper toturial?

  • @arindamghosh636
    @arindamghosh636 3 ปีที่แล้ว

    Brilliant

  • @BinaryAgent66
    @BinaryAgent66 4 ปีที่แล้ว +3

    Excellent video. One comment, at ~49 mins, it's SQL Injection attacks, rather than dependency injection.

  • @sergiob3698
    @sergiob3698 4 ปีที่แล้ว

    Thank you great video!
    When will be available the release of .net 5 ? is the preview stable?

    • @DotNetMastery
      @DotNetMastery  4 ปีที่แล้ว +1

      .net 5 will be released in nov!

    • @sergiob3698
      @sergiob3698 4 ปีที่แล้ว

      @@DotNetMastery Thank you

  • @ib4112
    @ib4112 3 ปีที่แล้ว

    where is the repository link for this video example

  • @ersamkul
    @ersamkul 3 ปีที่แล้ว +1

    Good one. Thank you!!

  • @peanut-d-cat
    @peanut-d-cat 3 ปีที่แล้ว

    this is gold!. thank you

  • @prashantkori8245
    @prashantkori8245 ปีที่แล้ว

    .net 6 and above does not t have startup file what to do

  • @simonkalu
    @simonkalu 4 ปีที่แล้ว

    Awesome. Thanks

  • @Spirittism
    @Spirittism 3 ปีที่แล้ว

    at 17:07 what would i put into google to get the connection string template?

  • @rayt6867
    @rayt6867 4 ปีที่แล้ว

    Hello Bhrugen, are we going to be working with 2 or more tables with one to many relationship using Dapper? Thanks

    • @DotNetMastery
      @DotNetMastery  4 ปีที่แล้ว

      Hi Ray, That is one of the most important piece with Dapper which can be tricky to understand! I cover one to one and one to many relations with Dapper in the full course, which is on dotnetmastery.com

    • @rayt6867
      @rayt6867 4 ปีที่แล้ว

      @@DotNetMastery Thanks, I will enroll.

  • @szabolcsbartha258
    @szabolcsbartha258 4 ปีที่แล้ว

    There is no .Net Core 5, as of now .Net Core's current version is 3.1, there is .Net 5, but that's a different thing... :D

  • @sportscompilation2218
    @sportscompilation2218 2 ปีที่แล้ว

    its very wrong approach, using connection initialization in Constructor will give "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached" errors

  • @lemurza5236
    @lemurza5236 3 ปีที่แล้ว +3

    Dude it was like 10 minutes of dapper the rest was Entiry Framework. You didn't even show how to map relationships

  • @youtub3ian728
    @youtub3ian728 3 ปีที่แล้ว

    Can you make a video where you log Dapper sql commands ? So instead of logging "Select * from products where productId = :prodID" you log the complete string "Select * from products where productId = 1 " .

  • @SomeBody-bk5op
    @SomeBody-bk5op 3 ปีที่แล้ว +2

    is this for Entity Framework or Dapper? All I hear is Entity framework...

    • @joaolopes8847
      @joaolopes8847 3 ปีที่แล้ว

      Thats the firs part, hang on

  • @omotayoiginla1270
    @omotayoiginla1270 3 ปีที่แล้ว

    Awesome

  • @arrtv3139
    @arrtv3139 3 ปีที่แล้ว

    Should be called learn Dapper in under 30 minutes, because the Dapper part doesn't start until 32:00 - good video though, but those that already know EF can skip the first half hour!

  • @mugheesulislam8470
    @mugheesulislam8470 ปีที่แล้ว

    31:30

  • @narendersingh6492
    @narendersingh6492 3 ปีที่แล้ว

    Dapper Fundamentals will be more helpful. Its more on EF

  • @encryptor6710
    @encryptor6710 3 ปีที่แล้ว

    Video could have been cut down to 15 minutes due to it not showing anything about Dapper for 42 minutes. Sheesh.

  • @PiyushSingh-mt2tb
    @PiyushSingh-mt2tb 3 ปีที่แล้ว

    *sings everytime* O R Mmmmmm!

  • @yasser2768
    @yasser2768 4 ปีที่แล้ว +2

    wtf is that name

  • @priyanshu4016
    @priyanshu4016 3 ปีที่แล้ว

    you have wasted 45 min to show the entity framework thing which is not good under the title sorry but no offence

  • @elmehdibenelmehdi464
    @elmehdibenelmehdi464 2 ปีที่แล้ว

    Learn Dapper in 7 minutes

  • @nero1563
    @nero1563 3 ปีที่แล้ว

    This video dos not focus on Dapper at all! You created the table with EF and used it with dapper!

    • @DotNetMastery
      @DotNetMastery  3 ปีที่แล้ว +1

      when you use dapper you do not "create" table, you need to either create it directly using SQL statements and access with Dapper right? In that case we can use any technology to use Dapper, since the purpose of Dapper is to access/modify with database after the table is created. Please correct me if you think this is not a correct statement.

    • @DrWambua
      @DrWambua 3 ปีที่แล้ว

      @@DotNetMastery I agree with you. Whilst EF can do Table Creations with Code-First Approach, You still need to create the same tables with EF Core if you're on Database-First approach. It's more of Data manipulation as opposed to database creation what this tutorial is all about. (At least that's how I understand it).

  • @civilDefense-p5r
    @civilDefense-p5r ปีที่แล้ว

    fast video to 2

  • @BobrLovr
    @BobrLovr 2 ปีที่แล้ว

    you don't explain why you do anything