public MigrationManager( IFilteringMigrationSource filteringMigrationSource, IMigrationRunner migrationRunner, IMigrationRunnerConventions migrationRunnerConventions, IMigrationContext migrationContext, ITypeFinder typeFinder, IVersionLoader versionLoader) { _typeMapping = new Dictionary <Type, Action <ICreateTableColumnAsTypeSyntax> >() { [typeof(int)] = c => c.AsInt32(), [typeof(string)] = c => c.AsString(int.MaxValue).Nullable(), [typeof(bool)] = c => c.AsBoolean(), [typeof(decimal)] = c => c.AsDecimal(18, 4), [typeof(DateTime)] = c => c.AsDateTime2(), [typeof(byte[])] = c => c.AsBinary(int.MaxValue), [typeof(Guid)] = c => c.AsGuid() }; _filteringMigrationSource = filteringMigrationSource; _migrationRunner = migrationRunner; _migrationRunnerConventions = migrationRunnerConventions; _migrationContext = migrationContext; _typeFinder = typeFinder; _versionLoader = versionLoader; }
public ProjectBasedMergeRequestLoader(DataCacheOperator op, IVersionLoader versionLoader, InternalCacheUpdater cacheUpdater, DataCacheConnectionContext dataCacheConnectionContext) : base(op) { _cacheUpdater = cacheUpdater; _versionLoader = versionLoader; _dataCacheConnectionContext = dataCacheConnectionContext; Debug.Assert(_dataCacheConnectionContext.CustomData is ProjectBasedContext); }
internal SearchBasedMergeRequestLoader(string hostname, DataCacheOperator op, IVersionLoader versionLoader, InternalCacheUpdater cacheUpdater, DataCacheConnectionContext dataCacheConnectionContext) : base(op) { _hostname = hostname; _cacheUpdater = cacheUpdater; _versionLoader = versionLoader; _dataCacheConnectionContext = dataCacheConnectionContext; Debug.Assert(_dataCacheConnectionContext.CustomData is SearchBasedContext); }