SQL查询的ASP.NET类代码 [英] ASP.NET class code for sql query

查看:96
本文介绍了SQL查询的ASP.NET类代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为每个sql命令使用类文件.如何在类文件中传递必需列的参数.

如何为每个sql命令创建类文件.

请帮我.在此先谢谢您

I want to use class file for every sql command. How to pass parameters for required columns in the class file.

How to create class file for every sql command.

Please help me. Thanks in advance

推荐答案

您的意思是:您有1个类,在这个类中,您打开与数据库的连接,创建sqlcommand并执行它,get参数是sql.从外面查询?
然后以您想要的形式,调用before类?
do you mean : you have 1 class , in this class you open the connection to database , create sqlcommand and execute it , get parameters is the sql query from outside?
then in the form you want, you call back the before class ?


这篇关于SQL查询的ASP.NET类代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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