开发者

Subsonic connections and dataset

If using subsonic, i know you hav to close a datareader. but what if you get a dataset back, from a stored procedure? What can you close? So if its like this -

 SubSonic.StoredProcedure sp = SubSonic.StoredProcedure; 
 DataSet ds = DataSet; 
 ds = sp.GetDataSet;

What do i close when done? I don't think dataset can be closed, 开发者_Go百科right? This is Subsonic 2.x

Sorry if this was posted already, i tried to post earlier but got error message, and then couldnt find it so am trying again.


The connection is made when the sproc is executed. After it makes the connect and pulls the data in to the dataset object the connection is automatically closed by SubSonic. No need to close anything manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜