public bool Insert(Models.BattleHistory model) { using (BattleHistoryDBContext context = new BattleHistoryDBContext()) { //context.BattleHistories. } return(true); }
internal int GetSortieCount() { int count = 1; using (BattleHistoryDBContext context = new BattleHistoryDBContext()) { count = context.BattleHistories.Select(x => x.SortieCount).Max(x => x + 1); } return(count); }