Type-Safe Entity Framework Include(www.nearinfinity.com)
submitted by
Lear(1195) 1 year, 6 months ago
Unlike many ORM solutions MS Entity Framework does not lazy fetch accessed tables. Coming from LINQ to SQL I didn't like this feature at first because it meant adding a bunch of loosely typed include statements to every SQL call. But I quickly realized the performance benefits, not to mention the N+1 problem just goes away. But, I still had heartburn over the loose typing of the include statement, so I came up with my own strongly typed include.
|category: ADO.NET
|Views: 26
tags:
ADO.NET Database another
Everyones tags:
Your Tags: