private void tuesdayTextToPlayers() { //get games using (var ctx = new TeamAmericaContext()) { List <Game> games = new List <Game>(); var game = new Game { GameId = Guid.NewGuid(), DateTime = DateTime.Today, Field = "Field 5", Title = "Some Game", Type = "Game" }; ctx.Games.Add(game); ctx.SaveChanges(); //var maxDate = (from g in db.Games select g.DateTime).Max(); //var ga = db.Games.ToList().Where(x => x.DateTime == maxDate); //get active players //start conversation for each player // coming to game? //send final blurb about additional commands } }
public ResponseRepository() { context = new TeamAmericaContext(); }
public GameRepository() { context = new TeamAmericaContext(); }
public PlayerRepository() { context = new TeamAmericaContext(); }