Пример #1
0
 /// <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");
 }
Пример #2
0
 /// <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>();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayerRepository"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public PlayerRepository(EntityFrameworkDbContext context)
     : base(context)
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpatialEntityRepository"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public SpatialEntityRepository(EntityFrameworkDbContext context)
     : base(context)
 {
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SolarSystemRepository"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public SolarSystemRepository(EntityFrameworkDbContext context)
     : base(context)
 {
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GalaxyRepository"/> class.
 /// </summary>
 /// <param name="context">
 /// The context.
 /// </param>
 public GalaxyRepository(EntityFrameworkDbContext context)
     : base(context)
 {
 }