Esempio n. 1
0
        public void Migrate()
        {
            var gameFactions = SourceDbContext.GameFactions.ToList();

            foreach (var gameFaction in gameFactions)
            {
                var newEntity = new GameFaction()
                {
                    Id     = _gameFactionKeyMapper.MapKey(gameFaction.Id),
                    Name   = gameFaction.Name,
                    GameId = gameFaction.GameId
                };

                TargetDbContext.GameFactions.Add(newEntity);
            }

            TargetDbContext.SaveChanges();
        }
Esempio n. 2
0
 void Start()
 {
     mFaction = Tools.FindInParents <GameFaction>(transform);
     ProximityManager.AddOnUpdate(this, OnUpdate);
 }
Esempio n. 3
0
 void Start()
 {
     mFaction = Tools.FindInParents<GameFaction>(transform);
     ProximityManager.AddOnUpdate(this, OnUpdate);
 }