Automatically create C# wrapper classes around stored procedures

后端 未结 6 2161
面向向阳花
面向向阳花 2021-02-06 09:51

I\'ve inherited a rather large application that really could use some cleanup. There is data access code littered throughout the application. In code behinds, some in business l

6条回答
  •  太阳男子
    2021-02-06 10:24

    I recommend you get a hold of Code Smith. The product includes a template for ORM and fully supports generating classes from DB Schemas (and I think Procs). You can then Code Gen all the objects you need.

    Another option would be to use LINQ to SQL.

提交回复
热议问题