/// <summary> /// Initializes a new instance of the <see cref="GalaxySettingsRepository"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public GalaxySettingsRepository(EntityFrameworkDbContext context) : base(context) { this.context = context; this.settingsDbQuery = this.context.GalaxySettings .Include("SolarSystemConstants") .Include("BuildingCosts") .Include("SolarSystemConstants.SpatialEntityProbabilities"); }
/// <summary> /// Initializes a new instance of the <see cref="Repository{TKey,TValue}"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> protected Repository(EntityFrameworkDbContext context) { this.context = context; this.dataBaseSet = this.context.Set <TValue>(); }
/// <summary> /// Initializes a new instance of the <see cref="PlayerRepository"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public PlayerRepository(EntityFrameworkDbContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="SpatialEntityRepository"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public SpatialEntityRepository(EntityFrameworkDbContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="ConstantsProvider"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public ConstantsProvider(EntityFrameworkDbContext context) { this.context = context; }
/// <summary> /// Initializes a new instance of the <see cref="SolarSystemRepository"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public SolarSystemRepository(EntityFrameworkDbContext context) : base(context) { }
/// <summary> /// Initializes a new instance of the <see cref="GalaxyRepository"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public GalaxyRepository(EntityFrameworkDbContext context) : base(context) { }