Тёмный

Getting Started with Dapper in .NET 

Amichai Mantinband
Подписаться 50 тыс.
Просмотров 11 тыс.
0% 0

Наука

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@fanaccount6600
@fanaccount6600 Месяц назад
Please add numbers to the title of the videos. i clicked on the playlist link and it's a bit confusing in what order i should watch them
@recaicingoz6785
@recaicingoz6785 Месяц назад
Thanks for the video but I actually don't want to find myself writing sql queries on the code side. Sometimes I can add a new feature to a class and then I need to change or update the sql query that I defined as dapper query in my repository. btw I know the dapper's power.
@philipfisher8853
@philipfisher8853 Месяц назад
Noob
@stefano_schmidt
@stefano_schmidt 19 дней назад
skill issue )
@ahupond
@ahupond Месяц назад
<a href="#" class="seekto" data-time="285">4:45</a> Best practice/Performance tip: return a boolean or an Error object instead of throwing an exception. For methods that return valid values, such as GetByIdAsync, you can use OneOf or ErrorOr libraries to return an explicit "not found" instead of using null as an implicit case.
@amantinband
@amantinband Месяц назад
I would likely recommend yes throwing. In most cases, this should be truly unexpected and should be treated as such.
@jcorrify
@jcorrify 18 дней назад
Not sure you realise Amichai is the author of the mentioned ErrorOr Nuget.... I'm confident he knows what he does...
@Radictor44
@Radictor44 Месяц назад
Really good video, learnt some things I didn't know here (I'm not a dev), but now thinking of how I can apply this to my own projects. 😃
@andrewboyd6090
@andrewboyd6090 Месяц назад
I haven’t used Dapper in 15 years, it’s barely changed, it certainly isn’t a EF CORE killer, but is worth knowing for the few scenarios it does a better job than EF CORE
@sneer0101
@sneer0101 Месяц назад
Why would it need to change?
@mariobrazil3934
@mariobrazil3934 Месяц назад
Thanks very much Amichai for this video. I'd like you make video how is your vscode settings, add-ons, settings, tips e etc. I notice that your vscode look like vim editor. Again, thank you.
@boring91
@boring91 2 месяца назад
Great video as always. One question I have is why did we go with Dapper instead of EF?
@amantinband
@amantinband 2 месяца назад
Just to mix things up. Both are great options for prod and non-prod apps with different pros and cons
@PatricSjoeoe
@PatricSjoeoe Месяц назад
EF Core getting better and better, Dapper is now obsolete.
@nilscoussement
@nilscoussement Месяц назад
@@PatricSjoeoe I did some speed tests last year, and had the same conclusion. However, when working on a bad database, you might still prefer to use raw sql over objects. No significant difference in memory usage or things like that.
@10Totti
@10Totti Месяц назад
@@PatricSjoeoe Great video but with the recent developments of EF Dapper it is no longer as beneficial as before.
@ashoktandan2372
@ashoktandan2372 29 дней назад
why scoped for IDBConnectionFactory class?
@vuhoang5903
@vuhoang5903 Месяц назад
Can we use the generic repository pattern like in EF core or do we have to write distinct queries for every entity?
@johnnyggun7141
@johnnyggun7141 Месяц назад
Cool! Shouldn't we reuse the opened DB connection tho?
@andihell4208
@andihell4208 Месяц назад
Hi, Amichai. Thanks for the video. Can you say please is it would be a good idea to change our insert and select queries using string interpolation for naming columns using nameof(Product.Name) for example instead of hardcoding column titles in query string?
@tchial0
@tchial0 Месяц назад
I have been seeing singular names for repositories out there, like "ProductRepository" instead of "ProductsRepository". Which makes more sense?
@elan2199
@elan2199 Месяц назад
Both
@uuuummm9
@uuuummm9 Месяц назад
I usually try to not use plural for words that should work as an adjective. But i am not a native speaker.
@cemkaya4448
@cemkaya4448 Месяц назад
Thanks for the video. In the work environment, do you use postgre SQL or MSSQL? I ask it because in macOS you cannot use the MSSQL. I wonder how do you handle it?
@amantinband
@amantinband Месяц назад
In this series I'm using postgres (as part of this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JiJeZOHx0ow.html), but mssql can be set up in a similar fasion
@cemkaya4448
@cemkaya4448 Месяц назад
@@amantinband Thank you!
@gyanookharel7440
@gyanookharel7440 Месяц назад
Docker?
@harrisonwell1719
@harrisonwell1719 Месяц назад
I think you should be AddSingleton instead AddScoped, correct me if I'm wrong
@10Totti
@10Totti Месяц назад
Great video but with the recent developments of EF Dapper it is no longer as beneficial as before.
@amantinband
@amantinband Месяц назад
Right, although sometimes the choice is a matter of personal preferences and not only performance
@ghevisartor6005
@ghevisartor6005 Месяц назад
If u want to have an immutable model is hard to do with ef core compared to dapper
@gppsoftware
@gppsoftware Месяц назад
Sorry, but Dapper went out of fashion 15 years ago. And so did the bad practice of writing non-parameterised raw SQL into code. EF provides a much better way of doing things.
@jcorrify
@jcorrify 18 дней назад
The queries are actually parameterized... Dapper or EF is a matter of preference... If you don't like, don't use it but it's still a good option
@gppsoftware
@gppsoftware 18 дней назад
@@jcorrify I don't think any of my clients would thank me for imposing 15 year out of date tech debt on them. Good luck with doing that to your clients!
@tekoScott
@tekoScott Месяц назад
What vscode theme are you using?
@superakaike
@superakaike Месяц назад
It’s the default theme
@amantinband
@amantinband Месяц назад
Yep it’s the default
@Siddiskongen
@Siddiskongen Месяц назад
Why the heck are you using primary constructors and assigning a private field variable? Just use the parameter directly. Thats the point of it
@ddrsdiego
@ddrsdiego 27 дней назад
Do better, don't use primary constructors
@Siddiskongen
@Siddiskongen 26 дней назад
@@ddrsdiego I have no issue with using primary constructors. I hate mapping DI parameters to corresponding private fields. Only thing they should fix is making the parameters read-only.
@santomy4579
@santomy4579 15 дней назад
Can you please elaborate on which point you are referring to by timestamp.
@Siddiskongen
@Siddiskongen 15 дней назад
@@santomy4579 E.g 6:39 and 8:10
Далее
Global Error Handling in .NET 8 - My Favorite Approach
14:18
МЕГА МЕЛКОВЫЙ СЕКРЕТ
00:46
Просмотров 179 тыс.
Simple Flower Syrup @SpicyMoustache
00:32
Просмотров 667 тыс.
💀СЛОМАЛ Айфон за 5 СЕКУНД😱
00:26
The Logging Everyone Should Be Using in .NET
15:34
Просмотров 59 тыс.
Migrations Done Right in .NET
11:11
Просмотров 9 тыс.
Getting Started with Event Sourcing in .NET
37:07
Просмотров 54 тыс.
Dependency Injection Deep Dive | .NET & C# Essentials
38:01
Exceptions are evil. This is what I do instead.
24:41
Forget Controllers and Minimal APIs in .NET!
14:07
Просмотров 65 тыс.
How He Got $600,000 Data Engineer Job
19:08
Просмотров 24 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Слетела прошивка на LiXiang L7
1:01
Samsung Galaxy S24 Ultra Vs Iphone 15 Pro Max
0:56
Новый фонарик в iPhone с iOS 18
0:49
Просмотров 487 тыс.
ноутбуки от 7.900 в тг laptopshoptop
0:14