title: How to set NewId() for GUID in entity framework
body: <p>I am creating asp.net mvc4 sample.In this i created Id column as GUID in Sample table of datacontext.  </p>
  
  <pre><code>public class Sample
  {
      [Required]
      public Guid ID { get; set; }
      [Required]
      public string FirstName { get; set; }
  }
  </code></pre>
  
  <p>This is entity table</p>
  
  <pre><code>CreateTable(
  "dbo.Samples",
   c =&gt; new
   {
       ID = c.Guid(nullable: false),
       FirstName = c.String(nullable: false)                   
   })
   .PrimaryKey(t =&gt; t.ID);
  </code></pre>
  
  <p>Id pass 00000000-0000-0000-0000-000000000000.</p>
  
  <p>How to set <code>newid()</code> to <code>GUID</code> and where i have to set.</p>