コード例 #1
0
 public TelecomDeviceRegistration(TelecomDeviceRegistrationData dbRecord) :
     base(dbRecord)
 {
     Data.Address = Data.Address ?? new GeographicAddressData();
     Data.Device  = Data.Device ?? new TelecomAddressData();
     Address      = AddressFactory.Create(Data.Address) as GeographicAddress;
     Device       = AddressFactory.Create(Data.Device) as TelecomAddress;
 }
コード例 #2
0
 public AddressesList(IEnumerable <AddressData> items, RepositoryPage page) : base(page)
 {
     if (items is null)
     {
         return;
     }
     foreach (var dbRecord in items)
     {
         Add(AddressFactory.Create(dbRecord));
     }
 }