Book a Demo

Author Topic: Generating DDL from classes  (Read 2557 times)

David_Travis

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Generating DDL from classes
« on: October 10, 2008, 11:55:21 am »
Hi,

I am generating DDL for a SQL Server database from classes. The classes use the VB.NET domain types (eg boolean, string, date).

I have transformed the classes to DDL. Their is no option to specify the destination domain type for the transformation, so the resulting tables  still have the VB.NET domain types (eg boolean, string, date).

For each table I then specify the database as SQL2000 and generate the package DDL.

Unfortunately, the resulting DDL still uses the VB.NET domain types (eg boolean, string, date) rather than the SQL Server domain types (bit, varchar, datetime).

Can anyone tell me how can I use EA (v7) to generate the correct SQLServer DDL?

Thanks
Dave

When I generate the package DDL I spec

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Generating DDL from classes
« Reply #1 on: October 11, 2008, 12:32:42 am »
I think you will need to do a transform to get the results you want. Take a look at the Code Engineering section of the documentation. Once you get the hang of it, check the Sparx site for white papers and search the forum for a lot of tricks, traps and hints.
No, you can't have it!