title: How to create Up and Down Methods using migrations?
body: <p>I am new to Code first, can you tell me how i can have all Up and Down methods for all tables in the database like below(given for one table)</p>
  
  <pre><code>public partial class abc: DbMigration
      {
          public override void Up()
          {
              AddColumn("dbo.UserTasks", "ServiceTechReason", c =&gt; c.Long());
          }
  
          public override void Down()
          {
              DropColumn("dbo.UserTasks", "ServiceTechReason");
          }
      }
  </code></pre>
  
  <p>i want all three types for a table viz .cs , .Designer.cs , .resx.</p>
  
  <p>2) Can you explain the above example, i pick it from somewhere on internet i was searching for this but found nothing. is abc is my table name in database?</p>
  
  <p>Provide me link if it is already answered.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As mentioned by @scheien i already tried those commands they do not automatically override up and down methods for a table</p>