Add a property to the User
object that returns just a substring of LinkCode
Something like:
public string FormattedLinkCode { get { return LinkCode.Last().ToString(); } }
EDIT: To add this functionality to a POCO object created by Entity Framework you could put this property in a partial class. Simply add a partial class to the same namespace in which your POCO resides.
public partial class User {
public string FormattedLinkCode
{
get {
if(string.IsNullOrEmpty(LinkCode))
return string.Empty;
return LinkCode.Last().ToString();
}
}
}