예제 #1
0
 public static string ToRelationPNROrNull(this IRelationship rel)
 {
     if (rel != null)
     {
         return(Converters.ToPnrStringOrNull(rel.RelationPNR));
     }
     return(null);
 }
예제 #2
0
 public static string[] ToRelationPNRsOrNull(this IMultipleRelationship rel)
 {
     if (rel != null && rel.RelationPNRs != null)
     {
         return(rel.RelationPNRs.Select(pnr => Converters.ToPnrStringOrNull(pnr)).ToArray());
     }
     return(null);
 }
예제 #3
0
        public PersonRelationType[] ToReplacedByRelationType(Func <string, Guid> cpr2UuidFunc)
        {
            var newPnr = Converters.ToPnrStringOrNull(CurrentCprNumber);

            if (!string.IsNullOrEmpty(newPnr))
            {
                return(new PersonRelationType[] { PersonRelationType.Create(cpr2UuidFunc(newPnr), PersonEndDate, null) });
            }
            else
            {
                return(new PersonRelationType[0]);
            }
        }
예제 #4
0
 public string ToPnr()
 {
     return(Converters.ToPnrStringOrNull(this.PNR));
 }
예제 #5
0
 public string ToCustodyOwnerPnr()
 {
     return(Converters.ToPnrStringOrNull(this.RelationPNR));
 }
예제 #6
0
 string ICivilStatus.ToSpousePnr()
 {
     return(Converters.ToPnrStringOrNull(this.SpousePNR));
 }
예제 #7
0
 public string ToRelationPNR()
 {
     return(Converters.ToPnrStringOrNull(this.RelationPNR));
 }