Entity Framework, Let's add some power to it
.png)
Wow Entity Framework is starting to pack Power So, what do I mean by that. It was released 15 years ago on the 11 of August 2008. Back then it was part of the . NET Framework 3.5 Service Pack 1 and you could use it with Visual Studio 2008 as long as you had service pack 1. To be honest, back then it wasn't very good. It was slow and a little painful. Jump forward 15 years... Jump forward 16 years and we now have Entity Framework Core 9. You can add it to you use it .Net 9 as a set of Nuget packages. This short blog post isn't going to teach you how to use EF Core 9, or .Net 9 it is simply going to show you how to ramp up your retrieval of data. So, why is EF 9 Core so powerful? Say we have a service Method called CreateBankCustomer that accept a complex object that includes BankCustomer and a list of BankBankAccounts? You can create all the table entries in one fail swoop.... using (var context = new BankingContext()) { var customer = new BankCust...