Тёмный

EF Core Bulk Updates: The Big Problem You Must Know About 

Milan Jovanović
Подписаться 106 тыс.
Просмотров 14 тыс.
50% 1

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

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@antonmartyniuk
@antonmartyniuk 3 месяца назад
Milan, it will be very useful if you show a list of all caveats in the start of the "Problem" section or at the end of the video to summarize them: exceptions & consistency, change tracker and interceptors
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
I summarize 'em verbally 😅
@emiraksoy1520
@emiraksoy1520 3 месяца назад
EF Core's ExecuteUpdate method works like Dapper's execute methods, allowing you to perform updates directly in the database.
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Yes, a nice parallel
@codecam9213
@codecam9213 3 месяца назад
Can you make video about using SqlQuery method using parameterizes store procedure? Thanks.
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Great suggestion!
@codecam9213
@codecam9213 3 месяца назад
@@MilanJovanovicTech _context.Database .SqlQuery($"EXEC spGet (@pa={pa},@br={br})"); NOT WORKING
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
@@codecam9213 Check this: learn.microsoft.com/en-us/ef/core/querying/sql-queries#passing-parameters
@cwevers
@cwevers 3 месяца назад
Great heads-up. Thanks!
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Any time!
@murat.yuceer
@murat.yuceer 3 месяца назад
You dont need rollback if you use using
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Watch the video again from 09:03..
@murat.yuceer
@murat.yuceer 3 месяца назад
@@MilanJovanovicTech sorry
@ChrisWard74
@ChrisWard74 3 месяца назад
Great information, is there a solution to keep the in memory record updated after the execute method?
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Not that I know of
@KangasniemiJerri
@KangasniemiJerri 3 дня назад
context.Entry(entity).Reload();
3 месяца назад
Is there an easy way to get updated records after this ExecuteUpdateAsync method? What exactly does using .ContinueWith do? Can we combine this query with .Take, .Order ,etc.
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
No, it'll only return the number of records that were updated. Take might help with limiting the number of records that are updated.
Далее
Are You Accidentally Crippling Your EF Core Queries?
17:18
Exceptions Are Extremely Expensive… Do This Instead
17:15
бабл ти гель для душа // Eva mash
01:00
Купил КЛОУНА на DEEP WEB !
35:51
Просмотров 2,6 млн
Гаджет из даркнета 📦
00:45
Просмотров 252 тыс.
The .NET 8 Auth Changes You Must Know About!
10:27
Просмотров 145 тыс.
Why You Shouldn't Nest Your Code
8:30
Просмотров 2,8 млн
Full Text Search in .NET With PostgreSQL and EF Core
24:13
Making Entity Framework Core As Fast As Dapper
13:17
Просмотров 88 тыс.
The Problem With UUIDs… And How To Solve It
18:04
Просмотров 13 тыс.
Stop Microsoft from getting your data!
11:45
Просмотров 155 тыс.
бабл ти гель для душа // Eva mash
01:00