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(); }
void Start() { mFaction = Tools.FindInParents <GameFaction>(transform); ProximityManager.AddOnUpdate(this, OnUpdate); }
void Start() { mFaction = Tools.FindInParents<GameFaction>(transform); ProximityManager.AddOnUpdate(this, OnUpdate); }