Let's say I have this Table:
Users
ID PK
NAME
IS_REAL
And I have this class for my front-end program (On the internet)
Class User
{
Int ID {get;set;}
string Name {get;set;}
}
And I also want to have another class for my back-end program (On the intranet)
Class MUser : User
{
bool IsReal {get;set;}
}
Is there a way I can use my mapping for User class, So if one of my fields change, I will only have to change in one place instead of duplicating the mapping?
Thanks in advance,
Amir.
EDIT:
Just for clarification, The two environments are disconnected from one another, and I have the "Is_Real" Property on only one side (The intranet environment)