宋仲基为爱辞去新剧:对ICollection的理解?

来源:百度文库 编辑:高考问答 时间:2024/04/29 01:19:55
ICollection CreateSource()
{

int StartIndex;

//设定导入的起终地址
StartIndex = CurrentPage*PageSize;
string strSel = "select * from Score";
DataSet ds = new DataSet();

OleDbDataAdapter MyAdapter = new OleDbDataAdapter(strSel,MyConn);
MyAdapter.Fill(ds,StartIndex,PageSize,"Score");

return ds.Tables["Score"].DefaultView;
}

这里为什么不用ICollection ,ICollection CreateSource() 跟 DataView CreateSource()
有什么区别吗,还是调用的时候有什么优势?

调用优势。