コード例 #1
0
        private static void UpdateNameByLanguage(StreetNameListItem entity, Language?language, string name)
        {
            switch (language)
            {
            case Language.Dutch:
                entity.NameDutch       = name;
                entity.NameDutchSearch = name.RemoveDiacritics();
                break;

            case Language.French:
                entity.NameFrench       = name;
                entity.NameFrenchSearch = name.RemoveDiacritics();
                break;

            case Language.German:
                entity.NameGerman       = name;
                entity.NameGermanSearch = name.RemoveDiacritics();
                break;

            case Language.English:
                entity.NameEnglish       = name;
                entity.NameEnglishSearch = name.RemoveDiacritics();
                break;
            }
        }
コード例 #2
0
        private static void UpdateHomonymAdditionByLanguage(StreetNameListItem entity, Language?language, string homonymAddition)
        {
            switch (language)
            {
            case Language.Dutch:
                entity.HomonymAdditionDutch = homonymAddition;
                break;

            case Language.French:
                entity.HomonymAdditionFrench = homonymAddition;
                break;

            case Language.German:
                entity.HomonymAdditionGerman = homonymAddition;
                break;

            case Language.English:
                entity.HomonymAdditionEnglish = homonymAddition;
                break;
            }
        }
コード例 #3
0
 private static void UpdateVersionTimestamp(StreetNameListItem streetNameListItem, Instant timestamp)
 => streetNameListItem.VersionTimestamp = timestamp;