C# Type for timestamp

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
gabs002
Posts: 3
Joined: Thu 20 Jun 2013 06:02

C# Type for timestamp

Post by gabs002 » Thu 20 Jun 2013 06:09

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

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

Re: C# Type for timestamp

Post by Shalex » Tue 25 Jun 2013 14:06

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).

Post Reply