public BestellingController(IConfiguration config)
 {
     BestellingContext = new BestellingMSSQLContext(config.GetConnectionString("DefaultConnection"));
     GerechtContext    = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection"));
     BestellingRepo    = new BestellingRepository(BestellingContext, GerechtContext);
     GerechtRepo       = new GerechtRepository(GerechtContext);
 }
Exemple #2
0
 public GerechtController()
 {
     context = new GerechtMSSQLContext();
     repo    = new GerechtRepository(context);
 }
Exemple #3
0
 public BestellingRepository(IBestellingContext bestellingContext, IGerechtContext gerechtContext)
 {
     BestellingContext = bestellingContext;
     GerechtContext    = gerechtContext;
 }
 public GerechtRepository(IGerechtContext context)
 {
     Context = context;
 }
Exemple #5
0
 public GerechtController(IConfiguration config)
 {
     context = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection"));
     repo    = new GerechtRepository(context);
 }