Hi,
I have a user table with the following fields:
ContactTitle
ContactName
ContactSurName
In my code, everytime I want to represent the user, I have to use string.Format to specify the full customer representation.
Is it possible to create some kind of combination of fetched entities, for example:
public string Contact
{
get
{
return string.Format("{0}{1}{2}",
string.Format("{0}{1}", ContactTitle, (ContactTitle.Trim() != "") ? " " : ""),
string.Format("{0}{1}", ContactName, (ContactName.Trim() != "") ? " " : ""),
string.Format("{0}{1}", ContactSurName, (ContactSurName.Trim() != "") ? " " : ""));
}
}
Best regards,