[Mono-devel-list] Mono.Data.DataTools.FillDataSet(string ConfigSetting, string SelectCommand)

meddochat meddochat at zonnet.nl
Fri Feb 27 10:33:45 EST 2004


Sorry, i've forgotten to edit the code snippet

here's the edited version:

--- Code Snippet ---
static public DataSet FillDataSet(string ConfigSetting, string SelectCommand)
{
	IDbConnection conn=ProviderFactory.CreateConnectionFromConfig(ConfigSetting);
	conn.Open();
	DataSet ds=null;
	try
	{
		ds=new DataSet();
		IDbDataAdapter adapter=ProviderFactory.CreateDataAdapter(conn, SelectCommand);
		adapter.Fill(ds);
	}
	finally
	{
		conn.Close();
	}
	return ds;
}

--- end code snippet --- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040227/e9d07eb1/attachment.html 


More information about the Mono-devel-list mailing list