I was wondering whether there is any intention to extend the 'Country' class to include the Alpha-2 code in addition to the numeric code?
I realise that it would be fairly trivial to implement a look up table for myself but i would be nice if it could all be kept together, this would also minimise calls to the db.
Alpha-2 Country code
Hi,
I was wondering whether there is any intention to extend the 'Country' class to include the Alpha-2 code in addition to the numeric code?
I realise that it would be fairly trivial to implement a look up table for myself but i would be nice if it could all be kept together, this would also minimise calls to the db.
You should be able to get the two letter ISO code with the following code:
If you want to get fancy with it you can do an extension method with the code in it so you can call TwoLetterIsoCode directly in the country object.
is working on a reply...