Fastest method for SQL Server inserts, updates, selects

前端 未结 6 1519
遇见更好的自我
遇见更好的自我 2020-12-01 02:02

I use SPs and this isn\'t an SP vs code-behind \"Build your SQL command\" question. I\'m looking for a high-throughput method for a backend app that handles many small trans

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 02:26

    This one has been around a while but if you're open to using a very Micro-ORM, just use dapper-dot-net.

    It has very clean syntax, is extremely fast, and easy to drop into any project. It is being used in production at StackOverflow, and this page was likely brought to you by it. Has support for all the usual SQL methods as extension methods and supports async on everything.

    Some performance comparisons:

    • Fetch performance of various .NET ORM data access frameworks
    • Speed Comparison: Dapper vs EF
    • Codefluent entities performance comparison

提交回复
热议问题