I have dbml with single table users
i want add partial class for User and add another property like so:
public partial class User
{
public string FullName
{
get
{
return FirstName + " " + LastName;
}
}
}
and then use in my View something like:
<%=ViewData.Model.FullName %>
here what im getting:
CS1061: 'PR.Web.Models.User' does not contain a definition for 'FullName' and no extension method 'FullName' accepting a first argument of type 'PR.Web.Models.User' could be found (are you missing a using directive or an assembly reference?)
what im doing wrong???