Asif Bhat, Ph.D.’s Post

𝗘𝗻𝘁𝗶𝘁𝘆 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 𝗶𝘀 𝗻𝗼𝘁 𝘆𝗼𝘂𝗿 𝗲𝗻𝗲𝗺𝘆 𝙀𝙣𝙩𝙞𝙩𝙮 𝙁𝙧𝙖𝙢𝙚𝙬𝙤𝙧𝙠 𝙞𝙨 𝙣𝙤𝙩 𝙮𝙤𝙪𝙧 𝙚𝙣𝙚𝙢𝙮. 𝙐𝙨𝙞𝙣𝙜 𝙞𝙩 𝙬𝙧𝙤𝙣𝙜 𝙞𝙨. 𝗜'𝘃𝗲 𝘀𝗲𝗲𝗻 𝘁𝘄𝗼 𝗸𝗶𝗻𝗱𝘀 𝗼𝗳 𝗘𝗙 𝗵𝗮𝘁𝗲 𝗼𝗻𝗹𝗶𝗻𝗲: 1. 𝘋𝘦𝘷𝘦𝘭𝘰𝘱𝘦𝘳𝘴 𝘸𝘩𝘰 𝘯𝘦𝘷𝘦𝘳 𝘶𝘯𝘥𝘦𝘳𝘴𝘵𝘰𝘰𝘥 𝘚𝘘𝘓 𝘣𝘭𝘢𝘮𝘪𝘯𝘨 𝘌𝘍 𝘧𝘰𝘳 𝘴𝘭𝘰𝘸 𝘲𝘶𝘦𝘳𝘪𝘦𝘴 𝘵𝘩𝘦𝘺 𝘸𝘳𝘰𝘵𝘦 2. 𝘋𝘦𝘷𝘦𝘭𝘰𝘱𝘦𝘳𝘴 𝘸𝘩𝘰 𝘶𝘯𝘥𝘦𝘳𝘴𝘵𝘢𝘯𝘥 𝘚𝘘𝘓 𝘱𝘦𝘳𝘧𝘦𝘤𝘵𝘭𝘺 𝘢𝘯𝘥 𝘸𝘢𝘯𝘵 𝘵𝘰 𝘸𝘳𝘪𝘵𝘦 𝘪𝘵 𝘮𝘢𝘯𝘶𝘢𝘭𝘭𝘺 Both groups have a point. Both groups are missing something. 𝗪𝗵𝗲𝗿𝗲 𝗘𝗙 𝗲𝘅𝗰𝗲𝗹𝘀: → CRUD operations on well-modelled entities → Rapid development with migrations → Keeping your domain model free of SQL concerns 𝗪𝗵𝗲𝗿𝗲 𝗘𝗙 𝗳𝗮𝗶𝗹𝘀 𝘆𝗼𝘂 (𝗶𝗳 𝘆𝗼𝘂 𝗹𝗲𝘁 𝗶𝘁): → Complex reporting queries — use Dapper or raw SQL here → Bulk operations — EF.BulkExtensions exists for a reason → When you don't understand the SQL it generates 𝗧𝗵𝗲 𝗯𝗶𝗴𝗴𝗲𝘀𝘁 𝗺𝗶𝘀𝘁𝗮𝗸𝗲: Treating EF as an abstraction that removes the need to understand SQL. It doesn't. It generates SQL. If you don't understand what it generates, you'll write slow queries and not know why. 𝗨𝘀𝗲 𝗘𝗙. 𝗕𝘂𝘁 𝗹𝗲𝗮𝗿𝗻 𝗦𝗤𝗟 𝗳𝗶𝗿𝘀𝘁. 𝗧𝗵𝗲𝗻 𝘂𝘀𝗲 𝗘𝗙. What's your current ORM opinion? Strongly held views welcome. 👇 #EntityFramework #DotNet #SQLServer #ORM #CSharp #DatabasePerformance #BackendDevelopment #Dapper

To view or add a comment, sign in

Explore content categories