public static void Main() { var context = new LostRPGDbContext(); //// context.Database.Initialize(true); using (var game = new LostRPGMain()) game.Run(); }
public UnitOfWork() { this.context = new LostRPGDbContext(); //////TODO? ////this.context.Configuration.LazyLoadingEnabled = false; this.gameStateSafes = new GameStateRepo(this.context); this.regionStates = new Repository <RegionState>(this.context); //// this.players = new Repository <CharacterUnit>(this.context); this.friendlyNPCs = new Repository <FriendlyNPCUnit>(this.context); this.enemeyNPCs = new Repository <EnemyNPCUnit>(this.context); this.items = new Repository <Item>(this.context); }
public Repository(LostRPGDbContext context) { this.Context = context; }
public GameStateRepo(LostRPGDbContext context) : base(context) { }