protected void CreateDbContext() { this.DbContext = new AgeRangerDbContext(); // Do NOT enable proxied entities, else serialization fails this.DbContext.Configuration.ProxyCreationEnabled = false; // Load navigation properties explicitly (avoid serialization trouble) this.DbContext.Configuration.LazyLoadingEnabled = false; // Because Web API will perform validation, we don't need/want EF to do so this.DbContext.Configuration.ValidateOnSaveEnabled = false; }
public AgeGroup(AgeRangerDbContext dbContext) : base(dbContext) { }
public Person(AgeRangerDbContext dbContext) : base(dbContext) { }