阅读背景:

你在哪里把SQL语句放在你的c#项目中?

来源:互联网 

I will likely be responsible for porting a vb6 application to c#. This application is a windows app that interacts with an access db. The data access is encapsulated in basic business objects. One class for one table basically. The existing vb6 business objects read and write to the DB via DAO. I have written DALs and ORMs a few times before but they all targeted SQL Server only. This one will need to target access and sql server. In previous projects, I would place the SQL strings in the private parts of the business object and maybe move the redundant sql code like connecting, creating command, in into a common base class to reduce the code.I will likely be responsible for porting a vb6




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: