title: how to concatenate first name and last name and display as full name in view when EF databasefirst
body: <p>I want to concatenate first name and last name and display it as fullname in view.i tried in usermeta because when you again generate edmx file it will wont affect but error unrecognised fields,any idea how?</p>
  
  <pre><code>public partial class userdetail
  {
      public userdetail()
      {
          this.orderdetails = new HashSet&lt;orderdetail&gt;();
      }
  
      public string userid { get; set; }
      public string username { get; set; }
      public string firstname { get; set; }
      public string lastname { get; set; }
  
      public virtual ICollection&lt;orderdetail&gt; orderdetails { get; set; }
  }
  </code></pre>
  
  <p>I created one more class usermeta for validations.</p>
  
  <pre><code>public class Usemeta
  {   
      [Required]
      public string userid { get; set; }
      [Required]
      public string username { get; set; }
      [Required]
      public string firstname { get; set; }
      [Required]
      public string lastname { get; set; }
      //[Required]
      //public string Fullname { get { return string.Concat(firstname + "" + lastname); } }
  }
  </code></pre>
  
  <p>And then I created a partial class.</p>
  
  <pre><code>[MetadataType(typeof(Usemeta))]
  public  partial class userdetail
  {
  }
  </code></pre>