protected void CreateDbContext() { _dbContext = new HL7DbContext(); // Do NOT enable proxied entities, else serialization fails. //if false it will not get the associated certification and skills when we //get the applicants //_dbContext.Configuration.ProxyCreationEnabled = false; // Load navigation properties explicitly (avoid serialization trouble) //_dbContext.Configuration.LazyLoadingEnabled = false; // Because Web API will perform validation, we don't need/want EF to do so //_dbContext.Configuration.ValidateOnSaveEnabled = false; //DbContext.Configuration.AutoDetectChangesEnabled = false; // We won't use this performance tweak because we don't need // the extra performance and, when autodetect is false, // we'd have to be careful. We're not being that careful. }