Generated entities in custom namespace?

Posts   
 
    
calebt
User
Posts: 2
Joined: 02-Dec-2009
# Posted on: 02-Dec-2009 23:12:38   

Our database tables have prefixes to denote different sections of the application. For example:

GL_Journal GL_Account GL_Budget PO_Order PO_OrderDetail

We'd like to be able to map the prefix to custom namespaces in the generated code. For example:

GL_Journal -> MyCompany.Entities.GeneralLedger.Journal PO_Order -> MyCompany.Entities.PurchaseOrder.Order

There actually will be some overlap with some of the names as this will be a large application (that needs to be in the same database) so we won't be able to just get rid of the prefixes. We'd also like to avoid long names for classes such as GeneralLedgerJournal (but this might be our best bet). This will mostly be for organization so we don't have 400+ classes in the same namespace.

Is this possible with LLBLGen? I was hoping the "Additional namespaces" setting under an entity's properties (Code gen options : Output specific settings) was what I needed, but this just adds additional using statements for the given values.

Thanks!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 03-Dec-2009 04:06:05   

Hi there...

That is not supported: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=11283 If you have 400+ tables, grouping them into separate namespaces doesn't make the app less complex, IMHO. You always can create multiple LLBLGen projects and use all generated code projects in your solution. This is common in large projects.

David Elizondo | LLBLGen Support Team
calebt
User
Posts: 2
Joined: 02-Dec-2009
# Posted on: 03-Dec-2009 16:47:53   

Thanks for the response