public CreatureAge(string dbValue) { if (string.IsNullOrEmpty(dbValue)) { creatureAgeId = CreatureAgeId.Unknown; } else { creatureAgeId = (CreatureAgeId)int.Parse(dbValue); } }
public CreatureAge(CreatureAgeId creatureAgeId) { this.creatureAgeId = creatureAgeId; }