B
Bud James via DotNetMonster.com
if i have something like this
private IDataAdapter dA;
private class DBTalker(IDbConnection cn)
{
Type t=cn.GetType();
}
By getting the connection type i know then if it is sql, access, oracle
so it would seem that with that information i can cast dA as the
appropriate type. I know i could use an if statement but that seems like
overkill since i already have the type. any ideas??
private IDataAdapter dA;
private class DBTalker(IDbConnection cn)
{
Type t=cn.GetType();
}
By getting the connection type i know then if it is sql, access, oracle
so it would seem that with that information i can cast dA as the
appropriate type. I know i could use an if statement but that seems like
overkill since i already have the type. any ideas??