Пример #1
0
        public void Update(msg.Contact dto, string user, IDbSession session)
        {
            Name = dto.Name;
            Tag  = dto.Tag;
            Addresses.Merge(dto.Addresses,
                            args => args.AddressID,
                            args => args.AddressID,
                            (src, dst) => dst.Update(src, user, session),
                            src => Addresses.Add(new Address(src, user, session)),
                            dst => Addresses.Remove(dst));

            base.CreateOrUpdate(user, session);
        }
Пример #2
0
 public Contact(msg.Contact dto, string user, IDbSession session)
 {
     Update(dto, user, session);
 }