I'm using the NHibernate HBM2DDL SchemaExport tool to generate my database from my entity objects, and I want to use SQL Server Timestamp columns for optimisitic concurrency.
I've added properties to my entity object that look like this:
public virtual byte[] Timestamp { get; set; }
NHibernate will generate the Timestamp column, but the type is varbinary(8000). I would rather use the Timestamp type in SQL Server because that will increment itself if someone changes something in the database (outside of NHibernate). Anyone know if this possible and how I can make this work?
(FWIW, I have followed the instructions found here for getting timestamp columns to work with Fluent NHibernate, but it doesn't appear that this stuff would have anything to do with the SchemaExport.)