Page 1 of 1

C# Type for timestamp

Posted: Thu 20 Jun 2013 06:09
by gabs002
I got a column in my table that is type "timestamp" when I create a mapping via EntityDeveloper, the type is Binary[] for my C# class. But what I want is type "BinaryBlob".
Is there a possibility to set up a default type "conversion", that timestamp always is BinaryBlob?

eg.: automatic mapping creation:

Code: Select all

<version name="Recordversion" type="Byte[]">
      <column name="recordversion" not-null="true" sql-type="timestamp" />
</version>
i want:

Code: Select all

<version name="RecordVersion" type="BinaryBlob" generated="always">
      <column name="recordversion" sql-type="timestamp"/>
</version>
Thank you!
Gabriele

Re: C# Type for timestamp

Posted: Tue 25 Jun 2013 14:06
by Shalex
gabs002 wrote:Is there a possibility to set up a default type "conversion", that timestamp always is BinaryBlob?
You are using the Database-First approach, aren't you?

The default Database-First mapping can be set via Entity Developer > Tools > Options > Servers' Options but you can choose only standard .NET types in this way.

Please set a custom type for a particular property via its Property Editor > Type > Custom Type and specify the type name using the following format: "MyNamespace.BinaryBlob, MyAssembly". Be aware that MyAssembly.dll should be accessible for CLR (e.g.: put it in GAC).