title: Entity Framework 7 data annotation support for [DatabaseGenerated(DatabaseGeneratedOption.Identity)] On a Guid type Primary Key
body: <p>I have an entity base class which I use for the basis of all my entities:</p>
  
  <pre><code>    public abstract class EntityBase : IEntity
  {
      [Key]
      [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
      public Guid Id
      {
          get
          {
              return _id;
          }
  
          set
          {
              if (_id.Equals(default(Guid)))
                  _id = value;
  
              if (_id.Equals(value))
                  return;
  
              throw new InvalidOperationException("Primary Keys cannot be changed.");
          }
      }
      Guid _id = default(Guid);
  
      [Timestamp]
      public byte[] RowVersion { get; set; }
  }
  </code></pre>
  
  <p>However is does not appear that <code>[DatabaseGenerated(DatabaseGeneratedOption.Identity)]</code></p>
  
  <p>has any effect.</p>
  
  <p>The Migration created has in the CreateTable method like the following:</p>
  
  <pre><code>columns: table =&gt; new
              {
                  Id = table.Column&lt;Guid&gt;(nullable: false),...
  </code></pre>
  
  <p>this should be:</p>
  
  <pre><code>Id = c.Guid(nullable: false, identity: true),...
  </code></pre>
  
  <p>is <code>[DatabaseGenerated(DatabaseGeneratedOption.Identity)]</code>
   no longer supported in entity framework 7?  Or am I missing something?</p>