Avatar of Andy Green
Andy Green
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Best way to map cultures

Hi, I have a legacy system where we have country codes and language codes to set culture, IE UK English is 1,1.

Developing a new system I have an ACL to get legacy data, but want to pass in a culture IE en-GB.

I'm looking for the best way to map these 2, where I pass in en-GB and it returns 1,1.

The new system is build in EF core 3.1. for now we only have 1 mapping to consider en-GB => 1,1 so we dont need a full implementation, rather look to get going with something that will grow as requirements change.



Andy

ASP.NET* ASP.NET Core

Avatar of undefined
Last Comment
Andy Green

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chinmay Patel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Andy Green

ASKER
Thanks, they reside in an SQL table, but not a tracked entity, so that could work, the ACL will be a temporary solution anyway.
Andy

Andy Green

ASKER
Sorry for dely in responding, adding a mapping key was the way we have gone.
Your help has saved me hundreds of hours of internet surfing.
fblack61