title: How to add a tag class to database using Migrations
body: <p>I Just want to create these classes and then use the migration to update my database . My question is :</p>
  
  <p>How to make PostTagMap class ? and here is the photo of the classes relation ..</p>
  
  <p><a href="http://i.stack.imgur.com/v6TY0.jpg" rel="nofollow">Classes Picture</a></p>
  
  <pre><code>public class Post
  {
      public virtual int Id
      { get; set; }
  
      public virtual string Title
      { get; set; }
  
      public virtual string ShortDescription
      { get; set; }
  
      public virtual string Description
      { get; set; }
  
      public virtual string Meta
      { get; set; }
  
      public virtual string UrlSlug
      { get; set; }
  
      public virtual bool Published
      { get; set; }
  
      public virtual DateTime PostedOn
      { get; set; }
  
      public virtual DateTime? Modified
      { get; set; }
  
      public virtual Category Category
      { get; set; }
  
      public virtual IList&lt;Tag&gt; Tags
      { get; set; }
  }
  </code></pre>
  
  <p>and here is the tag class :</p>
  
  <pre><code> public class Tag
  {
      public virtual int Id
      { get; set; }
  
      public virtual string Name
      { get; set; }
  
      public virtual string UrlSlug
      { get; set; }
  
      public virtual string Description
      { get; set; }
  
      public virtual IList&lt;Post&gt; Posts
      { get; set; }
  }
  </code></pre>