[Mono-devel-list] Mono.Data.DataTools.FillDataSet(string ConfigSetting, string SelectCommand)
meddochat
meddochat at zonnet.nl
Fri Feb 27 10:27:30 EST 2004
Hi
I have a patch for the Mono.Data.DataTools.FillDataset method.
how do i contribute it?
The method should be like this, The Adapter needs a connection:
--- 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(SelectCommand);
adapter.Fill(ds);
}
finally
{
conn.Close();
}
return ds;
}
--- end code snippet ---
Matthijs ter Woord
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040227/c487daa5/attachment.html
More information about the Mono-devel-list
mailing list