当前位置: 首页>>代码示例>>C#>>正文


C# IAnnouncer类代码示例

本文整理汇总了C#中IAnnouncer的典型用法代码示例。如果您正苦于以下问题:C# IAnnouncer类的具体用法?C# IAnnouncer怎么用?C# IAnnouncer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IAnnouncer类属于命名空间,在下文中一共展示了IAnnouncer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SqlServerProcessor

 public SqlServerProcessor(SqlConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
     : base(generator, announcer, options)
 {
     Connection = connection;
     connection.Open();
     Transaction = connection.BeginTransaction();
 }
开发者ID:briandonahue,项目名称:fluentmigrator,代码行数:7,代码来源:SqlServerProcessor.cs

示例2: PostgresProcessor

 public PostgresProcessor(NpgsqlConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
     : base(generator, announcer, options)
 {
     Connection = connection;
     connection.Open();
     Transaction = connection.BeginTransaction();
 }
开发者ID:elfrostie,项目名称:fluentmigrator,代码行数:7,代码来源:PostgresProcessor.cs

示例3: JetProcessor

 public JetProcessor(OleDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
     : base(generator, announcer, options)
 {
     Connection = connection;
     connection.Open();
     BeginTransaction();
 }
开发者ID:dabide,项目名称:fluentmigrator,代码行数:7,代码来源:JetProcessor.cs

示例4: GenericProcessorBase

 protected GenericProcessorBase(IDbConnection connection, IDbFactory factory
                                , IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options)
     : base(generator, announcer, options)
 {
     Connection = connection;
     Factory = factory;
 }
开发者ID:kevin3274,项目名称:fluentmigrator,代码行数:7,代码来源:GenericProcessorBase.cs

示例5: 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);
 }
开发者ID:Djohnnie,项目名称:Sonarr,代码行数:7,代码来源:NzbDroneSqliteProcessorFactory.cs

示例6: AzureProcessor

 public AzureProcessor(IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, IMigrationProcessorOptions options, IDbFactory factory)
     : base(generator, announcer, options)
 {
     this.factory = factory;
      Connection = connection;
      connection.Open();
 }
开发者ID:fire-eagle,项目名称:fluentmigrator,代码行数:7,代码来源:AzureProcessor.cs

示例7: 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);
        }
开发者ID:SaltyDH,项目名称:fluentmigrator,代码行数:8,代码来源:HanaProcessorFactory.cs

示例8: HtmlValidatorRunnerContext

        public HtmlValidatorRunnerContext(IAnnouncer announcer)
        {
            if (announcer == null)
                throw new ArgumentNullException("announcer");

            this.Announcer = announcer;
            this.TotalTimeStopwatch = StopwatchProvider.Current.NewStopwatch();
        }
开发者ID:NightOwl888,项目名称:ContinuousSeo,代码行数:8,代码来源:HtmlValidatorRunnerContext.cs

示例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();
 }
开发者ID:remids,项目名称:fluentmigrator,代码行数:8,代码来源:SqlServerProcessor.cs

示例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();
        }
开发者ID:bjoern-sma,项目名称:fluentmigrator,代码行数:8,代码来源:OracleProcessor.cs

示例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;
        }
开发者ID:BarsBarsovich,项目名称:fluentmigrator,代码行数:9,代码来源:JetProcessor.cs

示例12: MigrationRunner

 public MigrationRunner(IMigrationConventions conventions, IMigrationProcessor processor, IAnnouncer announcer, IStopWatch stopWatch)
 {
     _announcer = announcer;
     SilentlyFail = false;
     CaughtExceptions = null;
     Conventions = conventions;
     Processor = processor;
     _stopWatch = stopWatch;
 }
开发者ID:ngbrown,项目名称:fluentmigrator,代码行数:9,代码来源:MigrationRunner.cs

示例13: 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();
        }
开发者ID:hazzik,项目名称:fluentmigrator,代码行数:10,代码来源:PostgresProcessor.cs

示例14: ConnectionStringManager

 public ConnectionStringManager(INetConfigManager configManager, IAnnouncer announcer, string connection, string configPath, string assemblyLocation,
                                string database)
 {
     this.connection = connection;
     this.configPath = configPath;
     this.database = database;
     this.assemblyLocation = assemblyLocation;
     notUsingConfig = true;
     this.configManager = configManager;
     this.announcer = announcer;
 }
开发者ID:wiley1za,项目名称:fluentmigrator,代码行数:11,代码来源:ConnectionStringManager.cs

示例15: 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);
        }
开发者ID:nextgxdx,项目名称:fluentmigrator,代码行数:12,代码来源:PostgresProcessorFactory.cs


注:本文中的IAnnouncer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。