示例#1
0
        public PersonPreg(Person person)
        {
            _person = person;
            DateWhenNameRegistered = NameModel.GetDateWhenNameRegistered(person);
            MaidenName             = person.WithoutLegalCapacity; //"låner" WithoutLegalCapacity, siden det ikke brukes
            var isFemale = CommonFunctions.IsFemale(person.NIN);

            GenderBackingValue = isFemale.HasValue ? (isFemale.Value ? 0 : 1) : 0;
            UpdatedDate        = PersonWithMetadata.GetLastUpdated(person);
            CreatedDate        = PersonWithMetadata.GetCreatedDate(person);
        }
示例#2
0
 public AddressPreg(Address address)
 {
     _address    = address;
     CreatedDate = PersonWithMetadata.GetCreatedDate(address) ?? DateTime.Now.AddDays(-1);
     UpdatedDate = PersonWithMetadata.GetUpdatedDate(address) ?? DateTime.Now;
 }