コード例 #1
0
        public static IEnumerable <ImportSubaddressPositionFromCrab> Map(IEnumerable <tblAdrespositie_hist> huisnummerPositiesHist)
        {
            return
                (huisnummerPositiesHist
                 .Select(
                     s =>
            {
                MapLogging.Log(".");

                var modification = CrabEnumMapper.Map(s.Bewerking);

                return new ImportSubaddressPositionFromCrab(
                    new CrabAddressPositionId(s.adrespositieid.Value),
                    new CrabSubaddressId(s.adresid.Value),
                    new WkbGeometry(s.Geometrie.WKB),
                    new CrabAddressNature(s.aardAdres),
                    CrabEnumMapper.Map(s.HerkomstAdrespositie),
                    new CrabLifetime(s.beginDatum?.ToCrabLocalDateTime(), s.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(s.CrabTimestamp.ToCrabInstant())
                    .CorrectWhenTimeTravelingDelete(modification, s.begintijd.Value),
                    new CrabOperator(s.Operator),
                    modification,
                    CrabEnumMapper.Map(s.Organisatie));
            }));
        }
コード例 #2
0
        public static ImportHouseNumberFromCrab Map(tblHuisNummer huisnummer)
        {
            MapLogging.Log(".");

            return(new ImportHouseNumberFromCrab(
                       new CrabHouseNumberId(huisnummer.huisNummerId),
                       new CrabStreetNameId(huisnummer.straatNaamId),
                       new HouseNumber(huisnummer.huisNummer),
                       new GrbNotation(huisnummer.GRBnotatie),
                       new CrabLifetime(huisnummer.beginDatum.ToCrabLocalDateTime(), huisnummer.eindDatum?.ToCrabLocalDateTime()),
                       new CrabTimestamp(huisnummer.CrabTimestamp.ToCrabInstant()),
                       new CrabOperator(huisnummer.Operator), CrabEnumMapper.Map(huisnummer.Bewerking), CrabEnumMapper.Map(huisnummer.Organisatie)));
        }
コード例 #3
0
        public static ImportSubaddressFromCrab Map(tblSubAdres subaddress)
        {
            MapLogging.Log(".");

            return(new ImportSubaddressFromCrab(
                       new CrabSubaddressId(subaddress.subAdresId),
                       new CrabHouseNumberId(subaddress.huisNummerId),
                       new BoxNumber(subaddress.subAdres),
                       new CrabBoxNumberType(subaddress.aardSubAdresCode),
                       new CrabLifetime(subaddress.beginDatum.ToCrabLocalDateTime(), subaddress.eindDatum?.ToCrabLocalDateTime()),
                       new CrabTimestamp(subaddress.CrabTimestamp.ToCrabInstant()),
                       new CrabOperator(subaddress.Operator),
                       CrabEnumMapper.Map(subaddress.Bewerking),
                       CrabEnumMapper.Map(subaddress.Organisatie)));
        }
コード例 #4
0
        public static IEnumerable <ImportHouseNumberFromCrab> Map(IEnumerable <tblHuisNummer_hist> huisnummersHist)
        {
            return(huisnummersHist
                   .Select(huisnummerHist =>
            {
                MapLogging.Log(".");

                return new ImportHouseNumberFromCrab(
                    new CrabHouseNumberId(huisnummerHist.huisNummerId.Value),
                    new CrabStreetNameId(huisnummerHist.straatNaamId.Value),
                    new HouseNumber(huisnummerHist.huisNummer),
                    new GrbNotation(huisnummerHist.GRBnotatie),
                    new CrabLifetime(huisnummerHist.beginDatum?.ToCrabLocalDateTime(), huisnummerHist.eindDatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(huisnummerHist.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(huisnummerHist.Operator), CrabEnumMapper.Map(huisnummerHist.Bewerking), CrabEnumMapper.Map(huisnummerHist.Organisatie));
            }));
        }
コード例 #5
0
        public static IEnumerable <ImportHouseNumberMailCantonFromCrab> Map(IEnumerable <tblHuisNummer_postKanton> huisnummerPostKantons)
        {
            return(huisnummerPostKantons
                   .Select(huisNummerPostKanton =>
            {
                MapLogging.Log(".");

                return new ImportHouseNumberMailCantonFromCrab(
                    new CrabHouseNumberMailCantonId(huisNummerPostKanton.huisNummer_postKanton_Id),
                    new CrabHouseNumberId(huisNummerPostKanton.huisNummerId),
                    new CrabMailCantonId(huisNummerPostKanton.postKantonId),
                    new CrabMailCantonCode(huisNummerPostKanton.PostkantonCode),
                    new CrabLifetime(huisNummerPostKanton.beginDatum.ToCrabLocalDateTime(), huisNummerPostKanton.eindDatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(huisNummerPostKanton.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(huisNummerPostKanton.Operator),
                    CrabEnumMapper.Map(huisNummerPostKanton.Bewerking),
                    CrabEnumMapper.Map(huisNummerPostKanton.Organisatie));
            }));
        }
コード例 #6
0
        public static IEnumerable <ImportSubaddressStatusFromCrab> Map(IEnumerable <tblSubadresstatus> subadresStatuses)
        {
            return(subadresStatuses
                   .Select(
                       subadresstatus =>
            {
                MapLogging.Log(".");

                return new ImportSubaddressStatusFromCrab(
                    new CrabSubaddressStatusId(subadresstatus.subadresstatusid),
                    new CrabSubaddressId(subadresstatus.subadresid),
                    ParseSubaddressStatus(subadresstatus.Status),
                    new CrabLifetime(subadresstatus.begindatum.ToCrabLocalDateTime(), subadresstatus.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(subadresstatus.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(subadresstatus.Operator),
                    CrabEnumMapper.Map(subadresstatus.Bewerking),
                    CrabEnumMapper.Map(subadresstatus.Organisatie));
            }));
        }
コード例 #7
0
        public static IEnumerable <ImportHouseNumberStatusFromCrab> Map(IEnumerable <tblHuisnummerstatus> huisnummerstatusses)
        {
            return
                (huisnummerstatusses
                 .Select(huisnummerstatus =>
            {
                MapLogging.Log(".");

                return new ImportHouseNumberStatusFromCrab(
                    new CrabHouseNumberStatusId(huisnummerstatus.huisnummerstatusid),
                    new CrabHouseNumberId(huisnummerstatus.huisnummerid),
                    CrabEnumMapper.Map(huisnummerstatus.Status),
                    new CrabLifetime(huisnummerstatus.begindatum.ToCrabLocalDateTime(), huisnummerstatus.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(huisnummerstatus.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(huisnummerstatus.Operator),
                    CrabEnumMapper.Map(huisnummerstatus.Bewerking),
                    CrabEnumMapper.Map(huisnummerstatus.Organisatie)
                    );
            }));
        }
コード例 #8
0
        public static IEnumerable <ImportSubaddressMailCantonFromCrab> GetCommandsFor(
            IEnumerable <tblHuisNummer_postKanton_hist> huisnummerPostKantonsHist,
            int subadresid)
        {
            return(huisnummerPostKantonsHist
                   .Select(huisNummerPostKanton =>
            {
                MapLogging.Log(".");

                return new ImportSubaddressMailCantonFromCrab(
                    new CrabHouseNumberMailCantonId(huisNummerPostKanton.huisNummer_postKanton_Id.Value),
                    new CrabHouseNumberId(huisNummerPostKanton.huisNummerId.Value),
                    new CrabSubaddressId(subadresid),
                    new CrabMailCantonId(huisNummerPostKanton.postKantonId.Value),
                    new CrabMailCantonCode(huisNummerPostKanton.PostkantonCode),
                    new CrabLifetime(huisNummerPostKanton.beginDatum?.ToCrabLocalDateTime(), huisNummerPostKanton.eindDatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(huisNummerPostKanton.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(huisNummerPostKanton.Operator),
                    CrabEnumMapper.Map(huisNummerPostKanton.Bewerking),
                    CrabEnumMapper.Map(huisNummerPostKanton.Organisatie));
            }));
        }
コード例 #9
0
        public static IEnumerable <ImportSubaddressStatusFromCrab> Map(IEnumerable <tblSubadresstatus_hist> subadresStatussesHist)
        {
            return(subadresStatussesHist
                   .Select(
                       subadresstatusHist =>
            {
                MapLogging.Log(".");

                var modification = CrabEnumMapper.Map(subadresstatusHist.Bewerking);

                return new ImportSubaddressStatusFromCrab(
                    new CrabSubaddressStatusId(subadresstatusHist.subadresstatusid.Value),
                    new CrabSubaddressId(subadresstatusHist.subadresid.Value),
                    ParseSubaddressStatus(subadresstatusHist.Status),
                    new CrabLifetime(subadresstatusHist.begindatum?.ToCrabLocalDateTime(), subadresstatusHist.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(subadresstatusHist.CrabTimestamp.ToCrabInstant())
                    .CorrectWhenTimeTravelingDelete(modification, subadresstatusHist.begintijd.Value),
                    new CrabOperator(subadresstatusHist.Operator),
                    modification,
                    CrabEnumMapper.Map(subadresstatusHist.Organisatie));
            }));
        }
コード例 #10
0
        public static IEnumerable <ImportSubaddressPositionFromCrab> Map(IEnumerable <tblAdrespositie> huisnummerPosities)
        {
            return
                (huisnummerPosities
                 .Select(
                     adrespositie =>
            {
                MapLogging.Log(".");

                return new ImportSubaddressPositionFromCrab(
                    new CrabAddressPositionId(adrespositie.adrespositieid),
                    new CrabSubaddressId(adrespositie.adresid),
                    new WkbGeometry(adrespositie.Geometrie.WKB),
                    new CrabAddressNature(adrespositie.aardAdres),
                    CrabEnumMapper.Map(adrespositie.HerkomstAdrespositie),
                    new CrabLifetime(adrespositie.beginDatum.ToCrabLocalDateTime(), adrespositie.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(adrespositie.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(adrespositie.Operator),
                    CrabEnumMapper.Map(adrespositie.Bewerking),
                    CrabEnumMapper.Map(adrespositie.Organisatie));
            }));
        }
コード例 #11
0
        public static IEnumerable <ImportHouseNumberPositionFromCrab> Map(IEnumerable <tblAdrespositie_hist> huisnummerPositiesHist)
        {
            return
                (huisnummerPositiesHist
                 .Select(
                     s =>
            {
                MapLogging.Log(".");

                return new ImportHouseNumberPositionFromCrab(
                    new CrabAddressPositionId(s.adrespositieid.Value),
                    new CrabHouseNumberId(s.adresid.Value),
                    new WkbGeometry(s.Geometrie.WKB),
                    new CrabAddressNature(s.aardAdres),
                    CrabEnumMapper.Map(s.HerkomstAdrespositie),
                    new CrabLifetime(s.beginDatum?.ToCrabLocalDateTime(), s.einddatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(s.CrabTimestamp.ToCrabInstant()),
                    new CrabOperator(s.Operator),
                    CrabEnumMapper.Map(s.Bewerking),
                    CrabEnumMapper.Map(s.Organisatie)
                    );
            }));
        }
コード例 #12
0
        public static IEnumerable <ImportSubaddressFromCrab> Map(IEnumerable <tblSubAdres_hist> subadresHist)
        {
            return(subadresHist
                   .Select(
                       subaddress =>
            {
                MapLogging.Log(".");

                var crabModification = CrabEnumMapper.Map(subaddress.Bewerking);

                return new ImportSubaddressFromCrab(
                    new CrabSubaddressId(subaddress.subAdresId.Value),
                    new CrabHouseNumberId(subaddress.huisNummerId.Value),
                    new BoxNumber(subaddress.subAdres),
                    new CrabBoxNumberType(subaddress.aardSubAdresCode),
                    new CrabLifetime(subaddress.beginDatum?.ToCrabLocalDateTime(), subaddress.eindDatum?.ToCrabLocalDateTime()),
                    new CrabTimestamp(subaddress.CrabTimestamp.ToCrabInstant())
                    .CorrectWhenTimeTravelingDelete(crabModification, subaddress.beginTijd.Value),
                    new CrabOperator(subaddress.Operator),
                    crabModification,
                    CrabEnumMapper.Map(subaddress.Organisatie));
            }));
        }