public Manager() { // If necessary, add constructor code here // Initialize the UserAccount property UserAccount = new UserAccount(HttpContext.Current.User as ClaimsPrincipal); // Turn off the Entity Framework (EF) proxy creation features // We do NOT want the EF to track changes - we'll do that ourselves ds.Configuration.ProxyCreationEnabled = false; // Also, turn off lazy loading... // We want to retain control over fetching related objects ds.Configuration.LazyLoadingEnabled = false; }