Book a Demo

Author Topic: How to create a new template?  (Read 3021 times)

fabiopinheiro

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How to create a new template?
« on: August 24, 2004, 09:36:15 am »
Hi,
I' m testing EA to design and generate class(code) to C#.
 
I want implement the pattern DAO in my class.
I need to generate a class DAO(Data Access Object) for each class persistent.

How can I create a new template ? Or if exist one that make this...? Or if exist another Code Generator that make this....?


thanks,
and sorry for my bad English....

Fábio Pinheiro

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: How to create a new template?
« Reply #1 on: August 24, 2004, 04:30:27 pm »
Hi Fábio,

I am not sure if this is what you are looking for, but you certainly can customize the code generation templates. Menu Configuration > Code Generation Templates is probably what you are looking for.

Eu não sou certo se este ajudar, mas eu tentarei.  É possível modificar os "templates" do gerador do código. Os "templates" podem ser alcançados de aqui: Configuration > Code Generation Templates.

Just figured I would try  :-)

Bruno

fabiopinheiro

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: How to create a new template?
« Reply #2 on: August 25, 2004, 04:55:54 am »
Hi Bruno,
Thanks for your help.

I was studying and obtained to create a new "language", definite as DAO and created new template for this "language".
Now, I intend to use this template to create class DAO (pattern) for all persistent class...

I think that already one exists template that makes this, but as I did not find nothing I go to try to create mine... Any newness that you to know, informs to me.

thanks,
Fábio Pinheiro