private void UpdateDbaseRecordField(AddressBuildingUnitLinkExtractItem item, Action <AddressLinkDbaseRecord> update)
        {
            var record = new AddressLinkDbaseRecord();

            record.FromBytes(item.DbaseRecord, _encoding);
            update(record);
            item.DbaseRecord = record.ToBytes(_encoding);
        }
        private byte[] CreateDbaseRecord(BuildingUnitSyndicationContent buildingUnit, AddressLinkSyndicationItem address, SyndicationContext context)
        {
            var record = new AddressLinkDbaseRecord
            {
                objecttype = { Value = "Gebouweenheid" },
                adresobjid = { Value = string.IsNullOrEmpty(buildingUnit.Identificator.ObjectId) ? "" : buildingUnit.Identificator.ObjectId },
            };

            if (address != null)
            {
                if (!string.IsNullOrEmpty(address.PersistentLocalId))
                {
                    record.adresid.Value = Convert.ToInt32(address.PersistentLocalId);
                }

                record.voladres.Value = CreateCompleteAddress(address, context);
            }

            return(record.ToBytes(_encoding));
        }
        private byte[] CreateDbaseRecord(Parcel parcel, AddressLinkSyndicationItem address, SyndicationContext context)
        {
            var record = new AddressLinkDbaseRecord
            {
                objecttype = { Value = "Perceel" },
                adresobjid = { Value = string.IsNullOrEmpty(parcel.Identificator.ObjectId) ? "" : parcel.Identificator.ObjectId },
            };

            if (address != null)
            {
                if (!string.IsNullOrEmpty(address.PersistentLocalId))
                {
                    record.adresid.Value = Convert.ToInt32(address.PersistentLocalId);
                }

                record.voladres.Value = AddressBuildingUnitLinkProjections.CreateCompleteAddress(address, context);
            }

            return(record.ToBytes(_encoding));
        }