title: How do I define RowVersion in a C# class when using SQL Server and Entity Framework
body: <p>I have created a SQL table and an EF Fluent mapping as follows:</p>
  
  <pre><code>CREATE TABLE [dbo].[Application] (
      [ApplicationId]   INT            IDENTITY (1, 1) NOT NULL,
      [Name] NVARCHAR (50) Not NULL,
      [DataVersion] ROWVERSION,
      CONSTRAINT [PK_dbo.Application] PRIMARY KEY CLUSTERED ([ApplicationId] ASC)
  );
  </code></pre>
  
  <p>My EF Fluent API looks like this:</p>
  
  <pre><code>public class ApplicationConfiguration : EntityTypeConfiguration&lt;Application&gt;
      {
          public ApplicationConfiguration()
          {
              Property(a =&gt; a.Name)
                  .IsRequired()
                  .HasMaxLength(35);
  
              Property(p =&gt; p.RowVersion).IsRowVersion();
  
          }
      }
  </code></pre>
  
  <p>My Class looks like this:</p>
  
  <pre><code>public class Application
  {
      public int ApplicationId { get; set; }
      public string Name { get; set; }
      public virtual ICollection&lt;TestAccount&gt; TestAccounts { get; set; }
      xxxxxxx
  }
  </code></pre>
  
  <p>Can someone tell me how I can define the RowVersion in my class?</p>