Menu

Multiple class file for the persistant class

Ahmedojb
2006-08-03
2013-04-22
  • Ahmedojb

    Ahmedojb - 2006-08-03

    Hi,

    DomainObjectGen tool generate all persistant class (respectively interfaces) in one file,
    Thus, when we have a great number of table in the DB , the size of the file became very important(in terms of number of line and not of physical size).Also, we cannot work in a modular way with this inconvenience.

    Any help or ideas will be greatly appreciated.

    Thanks.

     
    • Richard Beauchamp

      Hi,

      DomainObjectGen.exe generates three files: GeneratedPersistentClasses.cs for the classes, GeneratedPersistentInterfaces.cs for the interfaces, and GeneratedQueryFields.cs for the field reference paths.

      Are you saying that you need it divided further, for example, into one file per class?

      I've thought about this but there would be extra work involved to include (and exclude when deleted) the multiple generated files in your VisualStudio project. When you have many classes, as in your case, this is potentially alot of overhead.

      When you have only three files to include, you just include them in your project one time, and the content is updated dynamically as the repository.xml file is updated.

      Does this make sense?

      If you absolutely need this 'one file per class' feature you can either submit a feature request, or implement it yourself and (hopefully) submit a patch so this feature becomes available for others.

      Best regards,

      Richard

       

Log in to post a comment.