Book a Demo

Author Topic: DLL Transformation  (Read 2375 times)

inpriv

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
DLL Transformation
« on: April 16, 2007, 05:58:26 am »
I try to add the length of an attribute in my transformation from domain model to data model.

My last try was to include the length in the type of my attributre:
Code: [Select]
string 30

In the transformation template I write this
Code: [Select]
 %if type == "string 30"%  
   type=%qt%%nvarchar%%qt%
   length=%qt%30%qt%
 %endTemplate%
 %if type != "string 30"%  
   type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,attType)%%qt%
 %endIf%  


The transform process never goes inside the first if

Somebody have an idea?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: DLL Transformation
« Reply #1 on: April 16, 2007, 12:57:32 pm »
There isn't any macro for type.  Try attType instead.