ADO.NET什么类型返回查询? [英] ADO.NET what type returns query?
本文介绍了ADO.NET什么类型返回查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!
我连接到sql server,现在尝试获取表的所有注释,并在将send对象结果直接发送到datagridview之后。从那里有疑问:什么类型返回查询ADO?
我使用下一个方法:
Hello!
I made connect to sql server and now try get all notes of table and after getting send object result direct to datagridview. Thence there is question: what type returns query ADO?
I use the next method:
public static Get()
{
SqlCeCommand command = new SqlCeCommand("SELECT * FROM Students");
return rdr = cmd.ExecuteReader();
}
但是我不知道函数Get()的返回类型是什么。这必须返回添加到Grid的结果(我使用N轮胎结构)。
对不起问题
But i dont know what return type specify for function Get(). This must return result that be added to Grid (I use N-tires structure).
Sorry for question
推荐答案
这很容易找出:在MSDN上查看 SqlCeCommand.ExecuteReader [ ^ ]和它会告诉你: SqlCeDataReader [< a href =http://msdn.microsoft.com/en-us/library/system.data.sqlserverce.sqlcedatareader(v=vs.80).aspx\"target =_ blanktitle =New Window> ^ ]
It is easy to find out: look on MSDN for SqlCeCommand.ExecuteReader[^] and it will tell you: SqlCeDataReader[^]
它将返回SqlDataReader对象
it will return SqlDataReader object
这篇关于ADO.NET什么类型返回查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文