No video

Entity Framework Core 5.0: The Next Generation for Data Access

Use C#, .NET classes, and LINQ to interact with databases like Sqlite, Azure SQL Server and even Azure Cosmos DB from .NET 5 apps with Entity Framework Core. See the latest features in action like many-to-many, table-per-type and filtered includes.
Get your questions answered on the Microsoft Q&A for .NET - aka.ms/dotnet-qa​
Learn .NET with free self-guided learning from Microsoft Learn: aka.ms/learndotnet

Пікірлер: 146

  • @MusicalGeniusBar
    @MusicalGeniusBar3 жыл бұрын

    Its insane how he explained ef core in 5 minutes

  • @cdv130

    @cdv130

    3 жыл бұрын

    I've meet Jeremy at a talk before and he is a master at explaining stuff, and a really chill dude

  • @michaelsimmons2497

    @michaelsimmons2497

    3 жыл бұрын

    2.5 min at 2x speed. That's quite a ride!

  • @willinton06

    @willinton06

    3 жыл бұрын

    @@michaelsimmons2497 1.75 minutes a 4X

  • @AlteMetallmuehle

    @AlteMetallmuehle

    3 жыл бұрын

    @@willinton06 seems like your player is no longer working properly 😆

  • @leandrocasas90
    @leandrocasas903 жыл бұрын

    This is one of my favorites from the whole event. Very information dense and very well explained!

  • @nove1398
    @nove13983 жыл бұрын

    Very excited to try out these new EF Core features. Keep on with the updates!!

  • @washington6986
    @washington69863 жыл бұрын

    You explain things very well, Jeremy :)

  • @ernestmfakudze
    @ernestmfakudze3 жыл бұрын

    Thanks guys, some pretty cool stuff there! Am looking forward to working with these new features.

  • @JamesHarrisonHaribo
    @JamesHarrisonHaribo3 жыл бұрын

    As usual, another great release of EF-Core. Thank you and your team for the great work. All these features are grealty welcomed by myself, especially of course, the many-to-many. Also, fantastic succinct presentation, obviously well-planned.

  • @Tontelz
    @Tontelz3 жыл бұрын

    Guys thank you for the demo, this is really informative. Amazing work.

  • @Spivonious
    @Spivonious3 жыл бұрын

    It took 13 years for EF to properly support many-to-many relationships.

  • @Spivonious

    @Spivonious

    3 жыл бұрын

    Also, TPH breaks db normalization. TPT is the "correct" method and should be encouraged. With proper relationships and indexes in place, joins should not be a major performance concern.

  • @adamc1694

    @adamc1694

    3 жыл бұрын

    Coming from WebObjects, yes after 30 years Microsoft's ORM is still only very basic. There is no GUI mapping tool. No entity to entity (1 to 1/ 1 to many/ many to many) relation mapping. No caching options. Not thread safe. The list go on... Many many years ago in a Spring class, the instructor said he has a buddy working for Microsoft in the middle of working on a ORM solution. Bill Gate personally came down to stop him. A ORM would hurt their SQL Server sale.

  • @hck1bloodday

    @hck1bloodday

    3 жыл бұрын

    @@adamc1694 sorry, but i don't see how an orm coud impact sq server sales, could you please elaborate?

  • @adamc1694

    @adamc1694

    3 жыл бұрын

    @@hck1bloodday You haven't seen WebObjects's ORM implementation created some 30 years ago. WebObjects's ORM framework has a central object store. So most of the operations are shifted away from the databases to the application servers. If the data (a table record for example) is already in the object store then no SQL will need to fry up again. To compare: 1. Microsoft's solution: 1000 concurrent users browse the data driven web page, 1000 copies of the same record will be fetched and stored in the application. 2. Apple's solution: 1000 concurrent users, only one actual record is fetched and kept in the application. Instead the application only keeps track of changes somewhat like the astracking in EF Core. When one of the 1000 users makes a change, the framework will send a notification to the other 999 sessions and their records will be updated automatically. Again no SQL except one will be involved.

  • @Miggleness

    @Miggleness

    3 жыл бұрын

    @@adamc1694 @Adam C caching isnt even the default behavior, and it is not a good default anyway. How do you manage freshness? How do you deal with horizontal scaling? How about devs who enable caching for a table with 10k records? It's a nice option to have but when you're releasing to a huge community you have to be selective with features you release. Caching is not simple and not a core functionality of an ORM. Keeping it out of the ORM is the correct decision IMHO.

  • @shubhamtiwari4078
    @shubhamtiwari40783 жыл бұрын

    Very Well Explained , I was waiting for that many to many relationship change , excited to use EF Core 5.

  • @javadborhani7838
    @javadborhani78383 жыл бұрын

    Shay Rojansky => this is the style I like someone to explain. thanks

  • @rukascool
    @rukascool3 жыл бұрын

    Lovely features as always, thank you microsoft! Hobby projects where perf doesn't matter, ToTable inheritence is really sweet.

  • @taddeustentakel8598

    @taddeustentakel8598

    2 жыл бұрын

    do u think EFCore 5-6 is not really useable for medium-tolarge business projects??

  • @liammcmullen4497
    @liammcmullen4497 Жыл бұрын

    How nice to see things getting easier to do. Thanks!

  • @mosialive
    @mosialive3 жыл бұрын

    WOW! I am loving this... Thanks Guys!

  • @EmilianoMusso
    @EmilianoMusso3 жыл бұрын

    Great features, thank you!

  • @rey6253
    @rey62533 жыл бұрын

    The new way of joining tables is just amazing. Thanks a lot for the improvement.

  • @ARCHNOX75
    @ARCHNOX753 жыл бұрын

    Im happy to see the features of EF are now into EF Core 5. Its like a christmas day

  • @mariselvam6702
    @mariselvam67023 жыл бұрын

    very excited to use EF Core 5 :)

  • @ibnfpv
    @ibnfpv3 жыл бұрын

    Great demo. really cool and needed features

  • @juancarlosgonzalez9722
    @juancarlosgonzalez97223 жыл бұрын

    These guys are wicked smart. Good stuff.

  • @pascaldeclercq283
    @pascaldeclercq2833 жыл бұрын

    Nice demo! Just tiny error I think: at 19:15 you are querying for the oldtimer members, but the query used actually looks for the newbies instead.

  • @mohamedsalah324
    @mohamedsalah3243 жыл бұрын

    Great and simple explanation

  • @JustinMinnaar
    @JustinMinnaar3 жыл бұрын

    Excellent and clear talk, thank you. At 20:00, line 30, should not oldTimers be those before the date, not after?

  • @EricOuellet2
    @EricOuellet23 жыл бұрын

    Great and clear explanations at a nice beat. BUT I have a lot of difficulty to be agree with you about using one table per hierarchy. It goes directly against "Normal form" (Boyce-Codd) and every advantages it has. Yes performance could be better in some case using one table oinly but it could also be less in some other cases. Plus, you have a lots of disadvantages of having unusefull fields in some cases and some other in other cases. You can loose a lot doing so in many ways (integrity, space, some performance on full table scan, etc). It could really become a huge mess.

  • @cas4425
    @cas44253 жыл бұрын

    Really nice👍🏼

  • @KillianKhoo
    @KillianKhoo3 жыл бұрын

    Excited to that TpT feature.

  • @sumod8898
    @sumod88983 жыл бұрын

    thank you for demoing something.

  • @saransh8236
    @saransh82362 жыл бұрын

    amazing update and great explanation

  • @markrobinson2648
    @markrobinson26483 жыл бұрын

    I've used every version of EF over the years and I've finally come to the conclusion that I simply don't need an ORM. I see no benefit. I now prefer to use something like dapper to query the database and create simple objects. It's lightweight and very fast and I can write sql as my query. I find ORMs like EF to be so restrictive.

  • @Spivonious

    @Spivonious

    3 жыл бұрын

    I've come to the same conclusion. I spent too many hours banging my head against EF trying to figure out how to map my clean domain model to a messy legacy database structure. In the end, I gave up and used Dapper and mapped manually. Yes, I lose change tracking and lazy loading, but I actually deliver business value.

  • @AGeeksTouch

    @AGeeksTouch

    3 жыл бұрын

    Same!

  • @FINSuojeluskunta

    @FINSuojeluskunta

    3 жыл бұрын

    I am a junior dev still in college but I can say that I have had enough issues with EF Core that I now just use it for writes and stick with Dapper for queries. It does help with migrations and db generation but I'm not sure if Dapper has options there now. I don't trust these contrived examples. With EF you say darn how do I do this thing I should surely be able to do and you check github and it's a request 8 years in the making...looking at you filtered includes and many-many relationships...at least the latter had a proper workaround.

  • @rajon69

    @rajon69

    3 жыл бұрын

    I'm using efcore in a generic repository pattern, but I'm using it only for cruds. For complex queries I prefer dapper too.

  • @RasmusSchultz

    @RasmusSchultz

    3 жыл бұрын

    Like every ORM throughout history, they're chasing rainbows. With every generation of every ORM, it's all "this time it's going to be great" - up until reality kicks back in, which is usually half way through a big project with a deadline. Just don't. Don't buy into the ORM delusion. It's fundamentally not a good idea, and no amount of clever features is going to fix this. Give me query builders or give me death.

  • @MusicalGeniusBar
    @MusicalGeniusBar3 жыл бұрын

    I would just like to point out how easy ef core is once you learn it , it makes a lot of sense

  • @marziehkhanbabazadeh1411
    @marziehkhanbabazadeh14113 жыл бұрын

    very excited to use EF Core 5

  • @jeffbarnard348
    @jeffbarnard3483 жыл бұрын

    Can you serialize these many:many relationships? How do you handle self referencing loops?

  • @mohammednhari1737
    @mohammednhari17373 жыл бұрын

    thank you what about azure functions with dotnet 5?

  • @Finezzato
    @Finezzato3 жыл бұрын

    How on earth the second time you run it didn't stop on the breakpoint?

  • @carlosantoniomarroquin5520
    @carlosantoniomarroquin55203 жыл бұрын

    Pretty cool

  • @hateterrorists
    @hateterrorists3 жыл бұрын

    Why are my navigation properties null after restarting the application? Do I have to manually connect them again? This is with the many to many relations.

  • @masterdirin
    @masterdirin3 жыл бұрын

    Came across a wierd phenomenon in EF Core 5.0 . . . class A; class B : A; class C; c = new C; c.b = new B; _context.Add(c); _context.SaveChanges(); // after saving changes let's check what we have in c.b // if B is configured as TPH then c.b is equal to b // if B is configured as TPT then c.b is null, but b is OK

  • @maximilianocalderon7856
    @maximilianocalderon78563 жыл бұрын

    I have a problem configuring SQL Server in the function AdddbContext, i can't use the options.UseSQLServer function to insert my connection string, there is some reference or extension im missing?

  • @zeushi
    @zeushi3 жыл бұрын

    Awesome.

  • @aarontheeranitpongtongmuan233
    @aarontheeranitpongtongmuan2333 жыл бұрын

    Is there any link to an example code for the second part by Shay Rojansky ? Thanks.

  • @lollo4711
    @lollo47113 жыл бұрын

    @19:51 - Line 30: I always liked the T-SQL BETWEEN-Statement. Is an Extension possible for "MemberSince" to be used inside the lambda-expression? like: m.MemberSince.Between(a,z)

  • @sneajy2030

    @sneajy2030

    3 жыл бұрын

    Wouldn't that be about linq instead of entity?

  • @reneschindhelm4312

    @reneschindhelm4312

    3 жыл бұрын

    That's acutally interesting and I'd like to know if EFCore has improved in that area. It could be an extension method / wrapper around IQueryable. I think that if the expression engine can't translate it to SQL you will end up with an error or, even worse, the deferred execution stops and you'll pull way more data to the client than you expected, applying all the remaining operations on the client side instead.

  • @alexnikolof
    @alexnikolof3 жыл бұрын

    Many to Many relationship as it is shown on the new WAY of doing it, is actually limiting the access to the data only to EF, and is using a lot of CPU and memory in real time when the query is performed. This can lead to problems with the performance especially when the dimensions of the data becomes hundreds of giga per table.

  • @namitavpani6133
    @namitavpani61333 жыл бұрын

    Nice Video

  • @iamearly8176
    @iamearly81763 жыл бұрын

    I have not been able to target net standard 2.x in Winforms, the only way I have been able to use Net Standard 2.x in WinForms is from a class library.

  • @peddapetavenkatesh3854
    @peddapetavenkatesh38543 жыл бұрын

    .net 5 is same like .net core 3.1 major changes are c# 9 and internally performance enhanced

  • @raymondbrink
    @raymondbrink3 жыл бұрын

    Is TPT coming to EF Core 3.1? I can't imagine it being hard to backport it, so .NET Framework 4 users can use it in their projects as well. That would give them a great head start to at least port the data access and data logic layers of their legacy applications to .NET Standard 2.0 opening their applications for future migration to .NET5.

  • @huntersMoon01
    @huntersMoon012 жыл бұрын

    how you do left join and then group by ?

  • @naval207
    @naval2073 жыл бұрын

    We can't execute the raw query why this feature is missing ? We have to use dapper ORM ?

  • @ericblankenburg
    @ericblankenburg3 жыл бұрын

    It would be great if EF Core supported arrays of primitive types for Cosmos DB.

  • @martingruebler443
    @martingruebler4433 жыл бұрын

    Ef doing many to many, I can not believe it

  • @daviddonadze221
    @daviddonadze2213 жыл бұрын

    Love EF

  • @JohanDG7
    @JohanDG73 жыл бұрын

    How does the MemberSince property automatically "know" it should store creation date by just declaring it? :)

  • @abcdeabcdeable

    @abcdeabcdeable

    3 жыл бұрын

    It doesn't he is just showing you how to add a field to the m2m table. Btw you can add property .HasDefaultValueSql("getutcdate()") which is outside this topic

  • @TSaqo
    @TSaqo3 жыл бұрын

    Great but. why don't you fixed migration issue for .net standard 2.1

  • @fullemptiness
    @fullemptiness3 жыл бұрын

    Typo at 2:12, POCO (Plain Old C#/CLR Object) However I don't know why it is old 😅

  • @wordonice4457
    @wordonice44573 жыл бұрын

    When will EF Core be compatible with MongoDB and other NoSQL DBs???

  • @theanachronism5919

    @theanachronism5919

    3 жыл бұрын

    Aren't there community providers already?

  • @KenzoArts
    @KenzoArts3 жыл бұрын

    When can i find the source code for reference ?

  • @naval207
    @naval2073 жыл бұрын

    Very bad support with Oracle database . scaffolding generating wrong data type column. number(4) converting in bit instead of int

  • @petropzqi
    @petropzqi3 жыл бұрын

    Many to many!!!!!

  • @ericblankenburg
    @ericblankenburg3 жыл бұрын

    Comos Db supports arrays of privative types but Entity Framework Core Cosmos Db does not. It's a huge issue.

  • @saffyappstore8476
    @saffyappstore84763 жыл бұрын

    unfortunately there is still no improvement in database first approach as we have to re-create whole entities for just small change

  • @dotnetdevni
    @dotnetdevni3 жыл бұрын

    What about custom fields for all tables this simple feature has been lacking for ages.

  • @ICanSeeSharp

    @ICanSeeSharp

    3 жыл бұрын

    What exactly do you mean? What are "custom fields"? Doesn't make any sense from c# or sql perspective.

  • @adamc1694

    @adamc1694

    3 жыл бұрын

    @@ICanSeeSharp To be able to create a 'Profile' for a filed? For example firstname, lastname, companyname....instead of doing a repeating annotation (max length, required...) on each xxx-name, why not to be able to create a custom profile and apply to all these xxxname.

  • @adae8481

    @adae8481

    3 жыл бұрын

    @@adamc1694 If I understand correctly what you want, you can create a "Name" class and use it as a owned entity for the main table, and you can configure it using the same configuration everywhere check this out github.com/dotnet/efcore/issues/15681#issuecomment-537789913 I've been using it for a year now :) and you can automate the configuration (even without owned entities) for all tables using reflection and the modelbuilder

  • @mrlidingo999
    @mrlidingo9993 жыл бұрын

    Isn't the oldTimers query reversed? Shouldn't the "oldTimer" be those with a membership < new DateTime(2000..... ???

  • @GrahamChowder
    @GrahamChowder3 жыл бұрын

    What would be really cool: if you could take a sql query and produce an EF query....

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em3 жыл бұрын

    I wished EF Core 5 could update a record without querying it first. I wonder why this feature is missed.

  • @willinton06

    @willinton06

    3 жыл бұрын

    I’m pretty sure you can do that

  • @mstya13
    @mstya133 жыл бұрын

    oh jesus I spent 8 hours today debugging my queries, where were you be earlier?

  • @kamarchand
    @kamarchand3 жыл бұрын

    Where can we find this demo?

  • @BenHayat
    @BenHayat3 жыл бұрын

    Jeremy, since EF5 supports NoSQL CosmoDB, is there plan for EF to support MongoDB?

  • @JeremyLikness

    @JeremyLikness

    3 жыл бұрын

    We're considering it. It was the most requested new provider so there's certainly demand.

  • @BenHayat

    @BenHayat

    3 жыл бұрын

    @@JeremyLikness Awesome! Not to put you on spot, it's only for me to prioritize my development and my roadmap, *IF* the decision is approved, what would be a rough estimate that it will be GA? Thanks for the reply

  • @JeremyLikness

    @JeremyLikness

    3 жыл бұрын

    @@BenHayat Too early to make any commitments or even guesses as to a timeframe or whether there will be work there.

  • @BenHayat

    @BenHayat

    3 жыл бұрын

    @@JeremyLikness Thanks!

  • @DhirenPathak
    @DhirenPathak3 жыл бұрын

    Great

  • @dmytroshchotkin2939
    @dmytroshchotkin29392 жыл бұрын

    Oh, so TPC is not introduced yet? =(

  • @bx0925
    @bx09253 жыл бұрын

    Its insane to use class table mapping things.

  • @brendanmurphy7509

    @brendanmurphy7509

    3 жыл бұрын

    I know! New to EF but not data modeling and... why does this feature exist??

  • @AlexeyMarkov
    @AlexeyMarkov3 жыл бұрын

    Lacking of support in azure functions makes ef core 5 useless

  • @chrisnurse6430
    @chrisnurse64303 жыл бұрын

    GraphQL and real time apps - should be native by now

  • @sporadics
    @sporadics3 жыл бұрын

    Wish there is a more intuitive way to query the children collection

  • @mjonausk
    @mjonausk3 жыл бұрын

    Yikes a discriminator is VARCHAR(MAX). You cannot index a varchar(max). Could cause speed problems later on.

  • @stefangabor5985
    @stefangabor59853 жыл бұрын

    I would have liked to see how could we integrate and debug some of these new features within a containerization approach type of programming. Remember, very few people can actually write good code. Just writing code it is not quite enough today, in 80’s and 90’s is yes.

  • @travisarndt853
    @travisarndt8533 жыл бұрын

    Using Sublime over VSCode?

  • @matthiasauswoger7994
    @matthiasauswoger79943 жыл бұрын

    8:24 This package (www.nuget.org/packages/ObjectStore/) can do this for years already.

  • @p46288
    @p462883 жыл бұрын

    9:35 LogTo

  • @canersarigul8975
    @canersarigul89753 жыл бұрын

    I don't see any new feature, they all already exists :-)

  • @leakyabstraction
    @leakyabstraction3 жыл бұрын

    Add configuration capability to Owned() and selectively ignorable global query filters to Fluent API, or a bunny will die.

  • @fffhshf345
    @fffhshf3453 жыл бұрын

    hibernate all the way

  • @PeterBuchmann

    @PeterBuchmann

    3 жыл бұрын

    Shocking indeed. We use a different mapper and have been able to use all these features with C# since more than 15 years!!! I used EF in a project about 5 years ago and experienced so many missing features that we haven't used EF since. EF is catching up and now has features that I miss in our tool. Still: In many scenarios EF is clearly better than native database programming without a mapper.

  • @fffhshf345

    @fffhshf345

    3 жыл бұрын

    @@PeterBuchmann I does not matter, in 10 years AI will write the code, and we both will be jobless/ forced to change job :D

  • @FixingGunsInAir
    @FixingGunsInAir3 жыл бұрын

    12:00 Microsoft Developer using Firefox on a stream... How? :)

  • @offir711
    @offir7113 жыл бұрын

    Just upgraded ef core 2.2 to ef core 5 and I don't recommend anyone to do it, so many bugs and things that don't work as expected, you can see the issues section in github here: github.com/dotnet/efcore/issues Every few minutes someone is submitting a new bug including my self. Even though ef core 5 solves a few issues that were problematic with efcore 2.2 I still prefer the old version due to many bugs efcore 5 has.

  • @tranceyy
    @tranceyy3 жыл бұрын

    So which is better, EF or NHIBERNATE?

  • @Spivonious
    @Spivonious3 жыл бұрын

    I hate these trivial examples. An ORM such as EF gives very little benefit if it's a 1:1 mapping between classes and DB tables. I would love to see a complex mapping scenario where data for one class is coming from multiple database objects, or vice versa where one table gets mapped into multiple classes.

  • @rojansky1

    @rojansky1

    3 жыл бұрын

    EF Core does support table splitting, where multiple classes are mapped to a single table: docs.microsoft.com/en-us/ef/core/modeling/table-splitting

  • @marianoguru2449
    @marianoguru24492 жыл бұрын

    Try not to reinvent the wheel and simplify thing using current theory, not changing the existing one.That 's why javascript is gaining users and you are loosing ones.

  • @PentarexBG
    @PentarexBG3 жыл бұрын

    2021 and explaining Entity framework like they invented the hot water.... hibernate is in java since 2010 and other ORMs are in JS since 2015....

  • @juanalfredogutierrez8663
    @juanalfredogutierrez86633 жыл бұрын

    I definitely stick with ADO.NET for transactions and for DAPPER queries

  • @BrettFleming
    @BrettFleming3 жыл бұрын

    Wow, you can really tell how much they hated adding TPT to core (#1 request for 4+ years). He just happens to skip the mortal sins of TPH, such as the db no longer able to enforce nullable operations. With TPH you can't have any of the properties on ExternalUser be non-nullable; By design they have to be nullable in the database. I appreciate that Shay like's First Normal better than Third Normal, but for heavens sake don't tell US we are doing it wrong. I hope the SQL Server team was watching this, I'm sure they all had a grand laugh when you said "joining tables is hard"... Lol.

  • @rojansky1

    @rojansky1

    3 жыл бұрын

    Re nullability enforcement with TPH, that's pretty trivial to achieve with check constraints (github.com/dotnet/efcore/issues/20931 tracks EF doing this for you). Other than that, the intention wasn't to tell anyone they're doing it wrong :) But over the years we've definitely seen TPT designs with deep hierarchies, causing very real perf issues, because of normalization ideals - just be aware of what you choose is all I'm saying.

  • @sneajy2030
    @sneajy20303 жыл бұрын

    Slow down Shay 🙄 anyway good job guys

  • @paulalves966
    @paulalves9663 жыл бұрын

    Still way far behind NHibernate.

  • @Mike-mo4rn
    @Mike-mo4rn3 жыл бұрын

    It seems C#, .NET continue to become more and more, unnecessarily complicated. One of the biggest mistake EF creators/coders have made is that they assume coders want to create a database using C#. EF now appears to be more bloated than ever, with too many classes. Shortest code is not always the shortest, and is not always the easiest to maintain. By increasing the learning curve the authors of this bloated software are simply shortening the lifespan of the products. Coders get easily excited with everything new, it does NOT mean the "new" stuff is actually easy to use or offers any benefit. The simplest solution almost always is the best solution.

  • @RasmusSchultz

    @RasmusSchultz

    3 жыл бұрын

    Yes. Less is more. Unfortunately, it takes a long time for most developers to arrive at this kind of clarity. Distractions like yet another ORM making bold, unrealistic claims adds years of wasted learning and unlearning to this path. I wish I knew how to guide new developers around all these obstacles, but I guess maybe it's just a painful rite of passage that every poor misguided developer has to get dragged through.

  • @FilipCordas

    @FilipCordas

    3 жыл бұрын

    Well no it really isn't complex EF is great when you want a small database setup quickly write your domain model and bum you have a database backing it up. You really shouldn't use it to map a gigantic database with hundreds of tables or create such databases with it. Like you can have an App running on docker or web app in five minutes with an sql database or cosmosdb and cicd,that all you should need for a small service.

  • @oldfootage
    @oldfootage3 жыл бұрын

    This looks like code first. If you are interested in data first don't waste your time with this video.

  • @PentarexBG
    @PentarexBG3 жыл бұрын

    WPF? 2020? Come on guys, you can do better than selling WPF in 2020... even 2021

  • @lakersgogo
    @lakersgogo3 жыл бұрын

    Why not just leave the database alone as it is. If you want a table just create a table in the DB and then query it in the code, simple and easy to understand! The EF problem nowadays is trying to do everything to a database. Before you could create a table properly in the EF code you will have to study like 1 hour manual to accomplish 5 min job. Of course it will be powerful when you have like 500 pages manual, but before that you will have to have a good memory and patient to remember all of these. A good tool for me is to decrease but not to increase the complexity of my job...

  • @flogginga_dead_horse4022

    @flogginga_dead_horse4022

    3 жыл бұрын

    One of the main points of an ORM is so developers don't have to be SQL experts as well. If you are already a DBA then you don't need this.

  • @tcfialho
    @tcfialho3 жыл бұрын

    Better late than never...

  • @aslamiqbal3435
    @aslamiqbal34353 жыл бұрын

    Shay started a race of coding. Slowdown man I can't sync with your code.

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat
    @SayWhaaaaaaaaaaaaaaaaaaaaaaat3 жыл бұрын

    OH PLS what next generation??? It's sooo next generation you cant even write raw sql and select 1 column! SO next generation that if your primary key is LONG you cant use int without cast to use Method Find.

  • @iamsandakelum
    @iamsandakelum3 жыл бұрын

    That awkward moment when you're using Firefox but not your own Microsoft Edge.

  • @Lindembergz
    @Lindembergz3 жыл бұрын

    My error with me is : PM> dotnet ef migrations add migracao1 Build started... Build succeeded. Unable to create an object of type 'ApplicationDBContext'. For the different patterns supported at design time, What happen ? .Net core 5