Print Page | Close Window

Adding Model to the Aurelius export

Printed From: TMS Software
Category: Business Tools
Forum Name: Data Modeler
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=7486
Printed Date: 15 Nov 2019 at 6:00am


Topic: Adding Model to the Aurelius export
Posted By: Ronald Janse
Subject: Adding Model to the Aurelius export
Date Posted: 09 Feb 2017 at 9:14am
We have a project that requires 3 datamodels and we make all of these models in your datamodeller.
That's fine, but one thing is very annoying: the modelname has to be added manually after the Aurelius export.
The datamodeller generates something like this:

[Entity]
  [Table('mytable')]

Which has to be extended manually to


  [Entity]
  [Model('mymodel')]
  [Table('mytable')]


In order to do this:


OM:=TObjectManager.Create(self.DM.Verbinding, TMappingExplorer.Get('mymodel'));


I imagine it must be no problem to add the modelname somewhere in the Datamodeller, maybe on the Aurelius Export page?



Replies:
Posted By: Wagner R. Landgraf
Date Posted: 09 Feb 2017 at 1:11pm
Are you already separating your models in the Data Modeler by creating three different diagrams? Or are you asking to add the model of each class manually in Data Modeler?


Posted By: Ronald Janse
Date Posted: 09 Feb 2017 at 3:34pm
We have three different datamodels in three diagrams. The only thing we need is that the Aurelius export adds the Model Name to the Aurelius .pas file at the appropriate places.


Posted By: Wagner R. Landgraf
Date Posted: 10 Feb 2017 at 5:05pm
Ok, there something for our backlog - export the [Model] attribute based on the diagrams in Data Modeler.



Print Page | Close Window