Beispiel #1
0
        public DBInitializer(
            IMapper _mapper,
            IReader _reader,
            IListEncoder _listEncoder,
            IOptionsSnapshot <AppSettings> _options,
            BNKSEEKDbContext _context)
        {
            this.mapper      = _mapper;
            this.reader      = _reader;
            this.converter   = _listEncoder;
            this.context     = _context;
            this.appSettings = _options.Value;

            this.pznPath = Path.Combine(Directory.GetCurrentDirectory(), "App_Data", "PZN.DBF");
            this.regPath = Path.Combine(Directory.GetCurrentDirectory(), "App_Data", "REG.DBF");
            this.tnpPath = Path.Combine(Directory.GetCurrentDirectory(), "App_Data", "TNP.DBF");
            this.uerPath = Path.Combine(Directory.GetCurrentDirectory(), "App_Data", "UER.DBF");
        }
Beispiel #2
0
 public UnitOfWork(BNKSEEKDbContext _context)
 {
     this.context = _context;
 }