Exemplo n.º 1
0
 /// <summary>
 /// 初始化一个新 <see cref="OracleProvider" /> 实例。
 /// </summary>
 /// <exception cref="System.InvalidOperationException">Can't find Connection type:  + _connectionTypeName</exception>
 public OracleProvider()
 {
     //_connectionType = TypeFromAssembly(_connectionTypeName, _assemblyName);
     //_commandType = TypeFromAssembly(_commandTypeName, _assemblyName);
     _connectionType = FastReflection.FastGetType(_connectionTypeName);
     _commandType    = FastReflection.FastGetType(_commandTypeName);
     if (_connectionType == null)
     {
         throw new InvalidOperationException("Can't find Connection type: " + _connectionTypeName);
     }
 }