I am using the NHibernate HBM2DDL SchemaExport tool to generate my database from entity objects, and I want to use SQL Server's Timestamp columns for optimizing concurrency.
I added properties to the entity object, which looks like this:
public virtual byte [] Timestamp {get; set; }
NHibernate will generate a Timestamp column, but type varbinary (8000). I would prefer to use the Timestamp type in SQL Server, because it will increase if someone changes something in the database (outside NHibernate). Does anyone know if this is possible and how can I do this work?
(FWIW, I followed the instructions found here to get timestamp columns for working with Fluent NHibernate, but it does not seem that this material will have anything to do with SchemaExport.)
source
share