示例#1
0
 public CreatureAge(string dbValue)
 {
     if (string.IsNullOrEmpty(dbValue))
     {
         creatureAgeId = CreatureAgeId.Unknown;
     }
     else
     {
         creatureAgeId = (CreatureAgeId)int.Parse(dbValue);
     }
 }
示例#2
0
 public CreatureAge(CreatureAgeId creatureAgeId)
 {
     this.creatureAgeId = creatureAgeId;
 }