All,
I am writing code that looks like:
public class UserController : AuthenticatedController
{
private MunicipalContext db = new MunicipalContext();
// GET: Users/Edit/5
public ActionResult Edit(int? id)
{
//Do stuff with db.Users
}
// Other action methods that do stuff with db.Users
}
Coming from a Java background, this feels like Servlets and instance fields and is starting to raise that buzzing feeling in the back of my head.
Am I going to run into thread safety issues?