ServiceStack/ServiceStack.OrmLite — pull request #280 by kaza (2013-07-16 21:33:07+00:00)
Title: support for Optimistic concurrency in Sql server using Timestamp columns

Added support for Optimistic concurrency in Sql server using Timestamp columns

-added new Attribute TimeStampAttribute, to annotate Timestamp columns, it has same name as existing in System.Annotations in version 4.0, if we change version of referenced assembly we can remove this attribute and just change the namespace
-added new property to FieldDefinition IsRowVersion, for row version field to mark field
-changed CreateUpdateParam and CreateInsertParam to accommodate for updates and inserts
-changed GetColumnDefition for Sql-Dialect provider to accommodate for new column type, as there is no access to the FieldDefinition class in this method I used convention that FieldType is byte[] and column name contains "version", if this is the case I generate TimeStamp column in the table, this would be cleaner if we would have acccess to the FieldDefinition but this would require much bigger change of APIs
-added unit test Can_execute_updateParam_using_versioned_row to test for the new functionality