title: ServiceStack OrmLite - Handling Default and Computed columns
body: <p>How exactly is ServiceStack OrmLite handling default and computed columns?</p>
  
  <p>Specifically I'm getting the error</p>
  
  <pre><code>The column "PointsAvailable" cannot be modified because it is either a computed column or is the result of a UNION operator.
  </code></pre>
  
  <p>This column is configured as a computed column in an SQL Server 2008 database.</p>
  
  <p>OrmLite does seem to do something with computed columns as you can add the attribute '[ServiceStack.DataAnnotations.Compute]' to a property in a model. </p>
  
  <p>Stepping into the code, the function 'ToInsertRowStatement' in 'OrmLiteDialetBase.cs' is called. While that function is checking if the AutoIncrement property is set, it isn't checking if the IsComputed property is set.</p>
  
  <p>I don't know if this is a bug or if I'm just using it wrong. </p>