Beispiel #1
0
        private void SetMigrate(string connectionString)
        {
            var optionsBuilder = new DbContextOptionsBuilder <PaySpaceContext>();

            optionsBuilder.UseSqlServer(connectionString);
            using (var context = new PaySpaceContext(optionsBuilder.Options))
            {
                context.Database.Migrate();
            }
        }
 public PostalCodeRepository(PaySpaceContext paySpaceContext)
 {
     _context = paySpaceContext;
 }
 public CalculationTypesRepository(PaySpaceContext paySpaceContext)
 {
     _context = paySpaceContext;
 }