private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection,
     AssemblyHandler handler)
 {
     if (handler.HasType<IExecutorProvider>())
     {
         return handler.CreateInstance<IExecutorProvider>(_config, database, connection);
     }
     return new DefaultExecutorProvider(_config, database, connection);
 }
示例#2
0
 private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection,
                                                  AssemblyHandler handler)
 {
     if (handler.HasType <IExecutorProvider>())
     {
         return(handler.CreateInstance <IExecutorProvider>(_config, database, connection, _cSharpExecutor));
     }
     return(new DefaultExecutorProvider(_config, database, connection, _cSharpExecutor));
 }