本文整理汇总了C#中IMigrationProcessorOptions类的典型用法代码示例。如果您正苦于以下问题:C# IMigrationProcessorOptions类的具体用法?C# IMigrationProcessorOptions怎么用?C# IMigrationProcessorOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMigrationProcessorOptions类属于命名空间,在下文中一共展示了IMigrationProcessorOptions类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PostgresProcessor
public PostgresProcessor(NpgsqlConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
connection.Open();
Transaction = connection.BeginTransaction();
}
示例2: GenericProcessorBase
protected GenericProcessorBase(IDbConnection connection, IDbFactory factory
, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
Factory = factory;
}
示例3: ConnectionlessProcessor
public ConnectionlessProcessor(IMigrationGenerator generator, IRunnerContext context, IMigrationProcessorOptions options)
{
Generator = generator;
Context = context;
Announcer = Context.Announcer;
Options = options;
}
示例4: SqlServerProcessor
public SqlServerProcessor(SqlConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
connection.Open();
Transaction = connection.BeginTransaction();
}
示例5: JetProcessor
public JetProcessor(OleDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
connection.Open();
BeginTransaction();
}
示例6: Create
public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
{
var factory = new MigrationDbFactory();
var connection = factory.CreateConnection(connectionString);
var generator = new SqliteGenerator() { compatabilityMode = CompatabilityMode.STRICT };
return new NzbDroneSqliteProcessor(connection, generator, announcer, options, factory);
}
示例7: AzureProcessor
public AzureProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, IDbFactory factory)
: base(generator, announcer, options)
{
this.factory = factory;
Connection = connection;
connection.Open();
}
示例8: Create
public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
{
var factory = new HanaDbFactory();
var connection = factory.CreateConnection(connectionString);
return new HanaProcessor(connection, new HanaGenerator(), announcer, options, factory);
}
示例9: SqlServerProcessor
public SqlServerProcessor(DbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, IDbFactory factory)
: base(generator, announcer, options)
{
this.factory = factory;
Connection = connection;
connection.Open();
BeginTransaction();
}
示例10: OracleProcessor
public OracleProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
//oracle does not support ddl transactions
//this.Transaction = this.Connection.BeginTransaction();
}
示例11: JetProcessor
public JetProcessor(OleDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
// Prefetch connectionstring as after opening the security info could no longer be present
// for instance on sql server
connectionString = connection.ConnectionString;
}
示例12: PostgresProcessor
public PostgresProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, IDbFactory factory)
: base(generator, announcer, options)
{
this.factory = factory;
Connection = connection;
connection.Open();
Announcer.Say("Beginning Transaction");
Transaction = Connection.BeginTransaction();
}
示例13: Create
public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options)
{
var factory = new PostgresDbFactory();
var connection =
factory.CreateConnection(connectionString.StartsWith("pgpass=", StringComparison.OrdinalIgnoreCase)
? GetPgConnectionString(connectionString)
: connectionString);
return new PostgresProcessor(connection,
new PostgresGenerator(LowerCaseIdentifiers(options.ProviderSwitches)), announcer, options, factory);
}
示例14: GenericProcessorBase
protected GenericProcessorBase(IDbConnection connection, IDbFactory factory
, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
// Prefetch connectionstring as after opening the security info could no longer be present
// for instance on sql server
connectionString = connection.ConnectionString;
Factory = factory;
}
示例15: JetProcessor
public JetProcessor(OleDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
: base(generator, announcer, options)
{
Connection = connection;
}