override public void MapDataFields(System.Data.DataRow currentRow) { base.MapDataFields(currentRow); entityId = base.IdFromSql(currentRow, "EntityId"); birthDate = (DateTime)currentRow["BirthDate"]; if (!(currentRow ["DeathDate"] is System.DBNull)) { deathDate = (DateTime)currentRow ["DeathDate"]; } else { deathDate = null; } gender = (String)currentRow["Gender"]; ethnicityId = base.IdFromSql(currentRow, "EthnicityId"); citizenshipId = base.IdFromSql(currentRow, "CitizenshipId"); languageId = base.IdFromSql(currentRow, "LanguageId"); maritalStatusId = base.IdFromSql(currentRow, "MaritalStatusId"); FamilyId = base.StringFromSql(currentRow, "FamilyId"); if (currentRow.Table.Columns.Contains("EntityName")) { try { entity = new Entity.Entity(base.application); entity.MapDataFields(currentRow); } catch { entity = null; } } return; } // MapDataFields (System.Data.DataRow currentRow)