title: EF6 Code First Use Data Annotations to populate description on SQL Table and Colums
body: <p>My work has a standard that requires each table and column (and other database objects) to have a description on it.  I would do this via property windows in SQL Management Studio or TSQL Script.</p>
  
  <p>Is it possible to use data-annotation e.g. Description to generate a description on the migrations.</p>
  
  <pre><code>    [Description("List of Valid System Parameter Groups")]
      public class SystemParameterGroup
      {
          public SystemParameterGroup()
          {
              this.SystemParameters = new ObservableCollection&lt;SystemParameter&gt;();
          }
  
          [Key]
          [DatabaseGenerated(DatabaseGeneratedOption.Identity)]   
          [Description("PK: Unique Record Identifer")]
          public int SystemParameterGroupId { get; set; }
  
          [Required(ErrorMessage="Group Name is Required")]
          [MinLength(5, ErrorMessage="Must be at least 5 Characters")]
          [MaxLength(50, ErrorMessage="Must be Less than 50 Characters")]
          [Description("Name of System Parameter Group")]
          public string SystemParameterGroupName { get; set; }
  
          #region Child Records
  
          public virtual ObservableCollection&lt;SystemParameter&gt; SystemParameters { set; get; }
          #endregion
      }
  </code></pre>
  
  <p>How do I Get the Description to be used using code first?</p>