G
GG
Can somebody please explain the difference between these 2 methods and
why would anybody will be using the one vs the other?
1st getting DataSet from the method parameter
public static void FillDataset(DataSet dataSet, ...)
{
FillDataset(connection, null, commandType,
commandText, dataSet, tableNames, commandParameters);
}
Called like this
// DataSet that will hold the returned results
DataSet ds = new DataSet();
FillDataset(ds,...)
2nd getting dataset from return
public static DataSet FillDataset(...)
{
return FillDataset(connection, null, commandType,
commandText, dataSet, tableNames, commandParameters);
}
Called like this
// DataSet that will hold the returned results
DataSet ds = new DataSet();
ds=FillDataset(...)
Thanks
why would anybody will be using the one vs the other?
1st getting DataSet from the method parameter
public static void FillDataset(DataSet dataSet, ...)
{
FillDataset(connection, null, commandType,
commandText, dataSet, tableNames, commandParameters);
}
Called like this
// DataSet that will hold the returned results
DataSet ds = new DataSet();
FillDataset(ds,...)
2nd getting dataset from return
public static DataSet FillDataset(...)
{
return FillDataset(connection, null, commandType,
commandText, dataSet, tableNames, commandParameters);
}
Called like this
// DataSet that will hold the returned results
DataSet ds = new DataSet();
ds=FillDataset(...)
Thanks