示例#1
0
        public MigrateAttachments(AppConfiguration appConfiguration,
                                  AttachmentFileHelper attachmentFileHelper,
                                  OldNiisFileContext fileContext)
        {
            _attachmentFileHelper = attachmentFileHelper;
            _appConfiguration     = appConfiguration;
            _fileContext          = fileContext;

            OptionsBuilder = new DbContextOptionsBuilder <NiisWebContextMigration>();
            OptionsBuilder.UseSqlServer(_appConfiguration.NiisConnectionString);
        }
 public OldNiisDocumentDataService(OldNiisFileContext fileContext)
 {
     _fileContext = fileContext;
     _fileContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
 }