c# - How to map number to marital status -


I have an area of ​​marital status in a database, each number represents the marital status in a separate table. The first table contains 1, 3, 4 numbers:

 1 = single 3 = married 4 = divorced 

The second value is:

 Single Married Divorced 

I need an I statement: If the table returns the value 1 in the field, then I want to write the 'single' message, if 3 'married' and if 4 'divorced' (Response one in C # Instead of typing the "if" statement, why not just join the database.

database query Of As to recover the text?


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -