Hallo,
>
> Hallo Alex, kannst Du mal was schicken, wie es jetzt aussieht?
public class OleDB
{
static string staticConnectionString;
static OleDB()
{
const string CONFIG_CONNECTION_STRING = "ConnectionString";
NameValueCollection values =
(NameValueCollection)ConfigurationSettings.GetConfig("appSettings");
staticConnectionString= values[CONFIG_CONNECTION_STRING];
}
public static MyTypedDataSet MyStaticMethod(object Param)
{
AdoHelper OleDbHelper =
AdoHelper.CreateHelper(typeof(OleDb).Assembly.FullName,
typeof(OleDb).FullName);
MyTypedDataSet ds = new MyTypedDataSet();
OleDbHelper.FillDataset(
staticConnectionString,
CommandType.StoredProcedure,
"myStoredProcedure",
ds,
new string[]{"TypedDataTable"},
new OleDbParameter("@myParam", Param));
return ds;
}
}
Gruss
Alex
_______________________________________________
CSharp.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/csharp.net