コード例 #1
0
        public bool ChangeMonsterType(MonsterType monsterType, EntityState state)
        {
            var entry = db.Entry <MonsterType>(monsterType);

            entry.State = state;
            return(db.SaveChanges() > 0);
        }
コード例 #2
0
 public bool InsertMonsterType(MonsterType monsterType)
 {
     db.MonsterTypes.Add(monsterType);
     return(db.SaveChanges() > 0);
 }