示例#1
0
        public static MonsterTypeDAO MapToMonsterTypeDAO(DA.MonsterType monster)
        {
            var m = new MonsterTypeDAO();

            m.Id   = monster.MonsterTypeId;
            m.Name = monster.Name;

            return(g);
        }
示例#2
0
        public static MonsterTypeDAO MapToMonsterTypeDAO(MonsterType monsterType)
        {
            var mt = new MonsterTypeDAO();

            mt.Id   = monsterType.MonsterTypeId;
            mt.Name = monsterType.Name;

            return(mt);
        }
        public bool InsertMonsterType(MonsterTypeDAO mtype)
        {
            var mt = new MonsterType();

            mt.TypeName      = mtype.Name;
            mt.MonsterTypeId = mtype.Id;

            return(ef.InsertMonsterType(mt));
        }
        public bool InsertMonster(MonsterTypeDAO monster)
        {
            var m = new Monster();

            m.Name     = monster.Name;
            m.GenderId = monster.Gender.Id;
            m.TypeId   = monster.Type.Id;

            return(ef.InsertMonster(m));
        }
示例#5
0
        public static MonsterTypeDAO MapToMonsterTypeDAO(MonsterType monstertype)
        {
            var m = new MonsterTypeDAO();

            m.Id   = monstertype.MonsterTypeId;
            m.Name = monstertype.TypeName;


            return(m);
        }
示例#6
0
 public static DA.MonsterType MapToMonsterType(MonsterTypeDAO monster)
 {
     throw new NotImplementedException();
 }