Best way of constructing dynamic sql queries in C#/.NET3.5?

后端 未结 12 3152
走了就别回头了
走了就别回头了 2021-02-15 11:25

A project I\'m working on at the moment involves refactoring a C# Com Object which serves as a database access layer to some Sql 2005 databases.

The author of the existe

12条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-15 11:48

    Unless executiontime is really important, I would consider refactoring the business logic that (so often) tends to find its way down to the datalayer and into gazillion-long stored procs. In terms of maintainabillity, editabillity and appendabillity I always try to (as the C# programmer I am) lift code up to the businesslayer.

    Trying to sort out someone elses 8000 line SQL Script is not my favorite task.

    :)

    //W

提交回复
热议问题