Allow byte array as version column

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Schulz_GdvKuhn
Posts: 7
Joined: Fri 01 Jun 2018 10:52

Allow byte array as version column

Post by Schulz_GdvKuhn » Fri 01 Jun 2018 11:23

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>

Schulz_GdvKuhn
Posts: 7
Joined: Fri 01 Jun 2018 10:52

Re: Allow byte array as version column

Post by Schulz_GdvKuhn » Fri 01 Jun 2018 19:53

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Allow byte array as version column

Post by Shalex » Wed 06 Jun 2018 17:08

Thank you for your report. We will correct the message and notify you.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Allow byte array as version column

Post by Shalex » Sat 23 Jun 2018 09:28

The message is corrected in the new (6.3.525) build of Entity Developer.

Post Reply