EF 8 Raw SQL Queries Are Coming - Are You Excited? #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

This feature was available back in EF6 (not EFCore). It's surprising it took this long to get it added into EFCore. But, it is nice to finally see it making a return.

relyengaming
Автор

Ive read about it but how does it benchmark against Dapper? With the projection, ofcourse.

BabyGhost
Автор

Its not a new feature however having the capability to project results into unmapped type is new

masifakbar
Автор

Sigh, Alright, I'll subscribe. This one feature has been a long time coming.

kurtnelle
Автор

Can you pass stored procedure instead of inline SQL queries?

Bourn
Автор

I understand the what and how but I dont get the why I would use this.

bogella
Автор

I would hate to work with any of these clueless devs in the comment section. Is this really how the industry is like?

diamondkingdiamond
Автор

To be fair, you have been able to execute raw SQL in EF since before it was EF Core. They have changed it over the years and improved it but I think your short is a bit misleading, as if this is a brand-new feature.

JasonHaffey
Автор

This is one of the best tutorials in minimal apis. I love tge fact that the trainer looked into common patterns such as automapper, fluent validation and even dtos. Is there a way to define the endpoints in a seperate file and only register the file or class on program.cs?

letlhogonolosetlhodi
Автор

Can you map the one to many / one to one result to dto class from this ?

jawadahmed
Автор

Does anyone has any idea to pass comma separated strings in the parameter? EF core added extra quote so it takes as a single long string. :D

devilspower
Автор

This is not a new feature. Previous versions of EF, you can do the same thing by calling the FromSQL method and passing in the SQL query that you want.

rhtservicestech
Автор

Milan, i'm already doing it in my projects since a few years. It is not a new.

mateuszrykowski