Example #1
0
        private static void UpdateNameByLanguage(StreetNameName streetNameName, Language?language, string name)
        {
            switch (language)
            {
            default:
            case Language.Dutch:
                streetNameName.NameDutch       = name;
                streetNameName.NameDutchSearch = name?.SanitizeForBosaSearch();
                break;

            case Language.French:
                streetNameName.NameFrench       = name;
                streetNameName.NameFrenchSearch = name?.SanitizeForBosaSearch();
                break;

            case Language.German:
                streetNameName.NameGerman       = name;
                streetNameName.NameGermanSearch = name?.SanitizeForBosaSearch();
                break;

            case Language.English:
                streetNameName.NameEnglish       = name;
                streetNameName.NameEnglishSearch = name?.SanitizeForBosaSearch();
                break;
            }
        }
Example #2
0
 private static void UpdateVersionTimestamp(StreetNameName streetNameName, Instant versionTimestamp)
 => streetNameName.VersionTimestamp = versionTimestamp;