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

后端 未结 12 2834
走了就别回头了
走了就别回头了 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:52

    Linq to SQL together with System.Linq.Dynamic brings some nice possibilities.

    I have posted a couple of sample code snippets here: http://blog.huagati.com/res/index.php/2008/06/23/application-architecture-part-2-data-access-layer-dynamic-linq

    ...and here: http://episteme.arstechnica.com/eve/forums/a/tpc/f/6330927813/m/717004553931?r=777003863931#777003863931

提交回复
热议问题