Best way to delete multiple records in a LINQ query?

后端 未结 10 772
暗喜
暗喜 2021-01-07 17:22

What is the best way to remove multiple records in one go with LINQ?

10条回答
  •  执念已碎
    2021-01-07 18:23

    The good old SPROCs.....

    You can drag the SPROC to your DBML file and it will generate a rich method in your databasecontext class.

    • How to: Call a Stored Procedure by Using LINQ (Visual Basic)
    • LINQ and Stored Procedures

提交回复
热议问题