title: Generate sequential Id for primary key column in NHibernate
body: <p>How can I generate a Sequential guid for a primary key column in NHibernate. I know how to do that auto increment stuff. But I don't know how to create a sequential Guid for primary key.</p>
  
  <p>In the database, data type of Id column is <code>uniqueidentifier</code>. I've checked the official docs and some other web search results. But I'm not able to find any solution. Here is what I have now:</p>
  
  <pre><code>public UserMap()
  {
      Table("Users");
      Id(x =&gt; x.Id);
      Property(x =&gt; x.Username, x =&gt; x.NotNullable(true));
      Property(x =&gt; x.Email, x =&gt; x.NotNullable(true));
      Property(x =&gt; x.PasswordHash, x =&gt;
      {
          x.NotNullable(true);
          x.Column("password_hash");
      });
  }
  </code></pre>