From bebc2d9df77837d0f50dad8b0a1bd56bfacdb24f Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Mon, 26 Oct 2026 14:20:20 +0100 Subject: [PATCH] make extensions projectable --- Models/Country.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Models/Country.cs b/Models/Country.cs index c01ae30..7b93d64 100644 --- a/Models/Country.cs +++ b/Models/Country.cs @@ -1017,6 +1017,7 @@ namespace NejCommon.Models public static CultureInfo GetCultureInfo(this Country country) => new CultureInfo(country.GetCountryCode()); public static string GetDisplayName(this Country country) => CountryProvider.GetCountry(country.GetCountryCode()).NativeName; + [Projectable] public static bool IsEU(this Country country) => country switch { Country.AT => true, @@ -1049,6 +1050,7 @@ namespace NejCommon.Models _ => false }; + [Projectable] public static bool IsEEA(this Country country) => IsEU(country) || (country switch { //extras @@ -1058,6 +1060,7 @@ namespace NejCommon.Models _ => false }); + [Projectable] public static bool IsSEPA(this Country country) => IsEEA(country) || (country switch{ Country.CH => true, Country.GB => true,