I haven't been able to find any answers online for this.
What are the advantages/disadvantages of using Multiple DB Contexts against using a single?
Is the below solution ok for setting related objects, (when saving to DB) (to make it more efficient, because I already have the ID, no need to fetch object)
I've heard its reccommened to use contexts like
Using(MyContext c = MyContext) {}, at the moment I'm using the default MVC way, of having the context instantiated in the controller, is this ok?Person P = new Person(); P.QuickSetCar(CarID); db.People.Add(P); db.saveChanges();and
private void QuickSetCar(int CarID) { if(this.Car == null) { Car C = new Car(); C.ID = ID; this.Car = C; } }