public ConnectedData() { _context = new SamuraiContext(); _context.Database.EnsureCreated(); }
public SamuraiRepository(SamuraiContext context) { this.context = context; }
public void RevertBattleChanges(int id) { //this is the simplest way. //Maybe later versions of EF will make it easier _context = new SamuraiContext(); }
public ConnectedData() { _context = new SamuraiContext(); _context.Database.Migrate(); }
public BusinessDataLogic() { _ctx = new SamuraiContext(); }
public BusinessDataLogic(SamuraiContext ctx) { _ctx = ctx; }
public BusinessDataLogic(SamuraiContext context) { _context = context; }