如何在SQL Server 2005中使用SQLHelper? [英] How to use SQLHelper in SQL Server 2005?

查看:81
本文介绍了如何在SQL Server 2005中使用SQLHelper?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在SQL Server中使用SQLHelper,任何代码示例?
例如,我在c#中创建了以下语句,

I want to know how is used the SQLHelper in the SQL Server, any code sample?
For instance I created the following statements in c#,

SqlCommand cmmnd = new SqlCommand("SELECT * FROM Persons", Connection.Cnnt);<br />
SQLHelper Cmd = new SQLHelper();<br />
Cmd.ExecuteDataTable(cmmnd);



那我该如何在服务器中重新创建相同的东西呢?



Then how I recreate the same thing in the server?

推荐答案

嘿,

您是在谈论将新的dataAccessLayer(dal)项目添加到解决方案中,还是将其类添加到您的第一个项目中?..

使用单独的图层?.....
hey,

Are you talking about adding a new dataAccessLayer(dal) project to your solutuion and adding its class to your first project?..

using seperate layers?.....


这篇关于如何在SQL Server 2005中使用SQLHelper?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆