Page 1 of 1

Allow byte array as version column

Posted: Fri 01 Jun 2018 11:23
by Schulz_GdvKuhn
Hey Folks,
we use Entity Developer for NHibernate with MS SQL Server. We want to let the db create the Version property with sql-type="timestamp". But the .Net Equivalent of sql-type timestamp is a byte array, which we can't select in Entity Developer for Version property. We always get the message "Version property may be of type Int64, Int32, Int16, Ticks, Timestamp, or TimeSpan"

So is it possible, and how, to get this mapping:

Code: Select all

<version name="Version" type="Byte[]" generated="always">
  <column name="Version" not-null="true" sql-type="timestamp" />
</version>

Re: Allow byte array as version column

Posted: Fri 01 Jun 2018 19:53
by Schulz_GdvKuhn
IF anyone has the same problem. I find the solution by myself. It is possible to select the data type "Binary" for Version column although the message box doesn't list this option.

Re: Allow byte array as version column

Posted: Wed 06 Jun 2018 17:08
by Shalex
Thank you for your report. We will correct the message and notify you.

Re: Allow byte array as version column

Posted: Sat 23 Jun 2018 09:28
by Shalex
The message is corrected in the new (6.3.525) build of Entity Developer.