如何在类中使用SQLdataadapter? [英] How to work with SQLdataadapter in a class?

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

问题描述

您好,先生/妈妈,
我如何在asp.net的类中使用sql dataadapter?我可以使用datareader.但是我不知道我如何使用dataadapter?

















谢谢.

Hi sir/mam,
How we work with sql dataadapter in a class in asp.net?i have work with datareader.but m not understand that how i work with dataadapter?

















Thank you.

推荐答案

您没有指定实际的问题,但请查看文档中的示例: ^ ].

它显示了如何使用适配器填充数据表.
You didn''t specify what the actual problem is but have a look at the example in the documentation: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.aspx[^].

It shows how to use the adapter to fill a datatable.



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

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