예제 #1
0
        public void CreateNewPhoneNumber(PhoneNumberType type,
                                         [RegularExpression(@"[0-9][0-9\s-]+")] string phoneNumber)
        {
            var pp = new PersonPhone();

            pp.BusinessEntityID  = this.BusinessEntityID;
            pp.Person            = this;
            pp.PhoneNumberType   = type;
            pp.PhoneNumberTypeID = type.PhoneNumberTypeID;
            pp.PhoneNumber       = phoneNumber;
            Container.Persist(ref pp);
            this.PhoneNumbers.Add(pp);
        }
 public static PersonPhone Updating(PersonPhone x, IContext context) => x with