private void SavePlanetRingInGeometrySystem(IDbConnection connection, GGeometryPlanetDataModel planet, int?ringType = null)
        {
            var db     = _gGeometryPlanetService.AddOrUpdate(connection, planet);
            var system = _systemService.GetGeometrySystem(connection, db.SystemId);

            system.Planetoids.Planets.Single(i => i.Value.Id == db.Id).Value.Rings = ringType;
            _systemService.AddOrUpdateGeometrySystem(connection, system);
        }
 public EstateItemOut SetPlanetEstateItem(IDbConnection connection, string planetName, GGeometryPlanetDataModel geometry)
 {
     return(new EstateItemOut {
         Name = planetName,
         Type = true,
         System = geometry.SystemId,
         Sector = geometry.SectorId,
         Galaxy = geometry.GalaxyId,
         OwnId = geometry.Id,
         GameTypeId = geometry.TypeId,
         TextureTypeId = geometry.TextureTypeId
     });
 }
        public GGeometryPlanetDataModel AddOrUpdate(IDbConnection connection, GGeometryPlanetDataModel dataModel)
        {
            var db = _planetGeometryRepo.AddOrUpdateeModel(connection, dataModel);

            return(_planetGeometryCache.UpdateLocalItem(connection, db));
        }