public static CountryIdentificationCodeType[] ToXmlType(EntitySet <ForeignCitizenCountry> fcc, bool isNationality)
 {
     if (fcc != null)
     {
         return(fcc.Where(f => f.IsNationality = isNationality)
                .OrderBy(f => f.Ordinal)
                .Select(f => ForeignCitizenCountry.ToXmlType(f))
                .Where(c => c != null)
                .ToArray());
     }
     return(null);
 }
示例#2
0
 /// <summary>
 /// Represents the ForeignCitizenData table
 /// </summary>
 public static UdenlandskBorgerType ToXmlType(ForeignCitizenData db)
 {
     if (db != null)
     {
         return(new UdenlandskBorgerType()
         {
             FoedselslandKode = CountryRef.ToXmlType(db.BirthCountryRef),
             PersonCivilRegistrationReplacementIdentifier = db.CivilRegistrationReplacementIdentifier,
             PersonIdentifikator = db.PersonIdentifier,
             SprogKode = ForeignCitizenCountry.ToXmlType(db.ForeignCitizenCountries, false),
             PersonNationalityCode = ForeignCitizenCountry.ToXmlType(db.ForeignCitizenCountries, true),
         });
     }
     return(null);
 }