Write get and set method for database
Write get and set method for database
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ArshadPosted Jul 3, 2009, 7:15 PM
so you just start added the Variable as per the Data Base Column and Just assign the Property that's all, or else if you are using the C# then just write click on those variable and select the Refactor and then Encapsulate Field option or else
just find below
private string str;
public string Str
{
get { return str; }
set { str = value; }
}
Thats all you do for all the DataBase Column.
Regards
Arshad Khan.