示例#1
0
 public bool Insert(Models.BattleHistory model)
 {
     using (BattleHistoryDBContext context = new BattleHistoryDBContext())
     {
         //context.BattleHistories.
     }
     return(true);
 }
示例#2
0
        internal int GetSortieCount()
        {
            int count = 1;

            using (BattleHistoryDBContext context = new BattleHistoryDBContext())
            {
                count = context.BattleHistories.Select(x => x.SortieCount).Max(x => x + 1);
            }
            return(count);
        }