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); }
public GerechtController() { context = new GerechtMSSQLContext(); repo = new GerechtRepository(context); }
public BestellingRepository(IBestellingContext bestellingContext, IGerechtContext gerechtContext) { BestellingContext = bestellingContext; GerechtContext = gerechtContext; }
public GerechtRepository(IGerechtContext context) { Context = context; }
public GerechtController(IConfiguration config) { context = new GerechtMSSQLContext(config.GetConnectionString("DefaultConnection")); repo = new GerechtRepository(context); }