private static IDbConnection GetConnection3(DbDataAdapter adapter, IDbCommand command, string method)
{
Debug.Assert(null != command, "GetConnection3: null command");
Debug.Assert(!string.IsNullOrEmpty(method), "missing method name");
IDbConnection connection = command.Connection;
if (null == connection)
{
throw ADP.ConnectionRequired_Res(method);
}
return connection;
}