public CelestialObjectMoonSeeder(
     IContextConnector <CelestialObjectModel> connector,
     List <CelestialObjectTypeModel> celestialObjectTypes,
     List <CelestialObjectModel> celestialObjects)
     : base(connector)
 {
     CelestialObjectTypeDictionary = celestialObjectTypes.ToDictionary(x => x.Code, x => x.Id);
     CelestialObjectDictionary     = celestialObjects.ToDictionary(x => x.Code, x => x.Id);
 }
 public CelestialObjectSunSeeder(
     IContextConnector <CelestialObjectModel> connector)
     : base(connector)
 {
 }
Beispiel #3
0
 public CelestialObjectController(IContextConnector <CelestialObjectModel> connector)
     : base(connector)
 {
 }
 public CelestialObjectPositionSeeder(IContextConnector <CelestialObjectPositionModel> connector, List <CelestialObjectModel> celestialObjects)
     : base(connector)
 {
     CelestialObjectDictionary = celestialObjects.ToDictionary(x => x.Code, x => x.Id);
     CelestialObjectPositions  = celestialObjects.Select(x => new CelestialObjectPositionModel(x.Id, DateTimeOffset.Now, null, 0, 0)).ToList();
 }
Beispiel #5
0
 protected DataController(IContextConnector <TModel> connector)
 {
     Connector = connector;
 }
Beispiel #6
0
 protected BaseSeeder(IContextConnector <TModel> connector)
 {
     Connector = connector;
 }
Beispiel #7
0
 public DataController(IContextConnector <TModel> connector)
 {
     Connector = connector;
 }