Generating namespace suffix

Posts   
 
    
nottinbe
User
Posts: 46
Joined: 15-Mar-2007
# Posted on: 23-May-2008 16:08:12   

I am using v2.5. I am trying to figure out how to use a namespace suffix for the generic project using the adapter templates.

I found the "AdapterDbSpecificNamespaceSuffix" which works fine for that project, but "AdapterDbGenericNamespaceSuffix" seems to be missing. Am I missing something? Why wouldn't I be able to have a generic suffix as well as a specific suffix?

Thanks, Brian

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 23-May-2008 23:52:24   

Hi Brian,

DBGeneric project namespace is, indeed, the whole root namespace. So if you want to add a suffix you may add it at RootNamespace (project properties). Note that as this is the RootNamespace, this will affect the DBSpecific namespace:

Root NS: MyCompany.Sales AdapterDbSpecificNamespaceSuffix: DAL Resulted DBGeneric NS: MyCompany.Sales Resulted DBSpecific NS: MyCompany.Sales.DAL

Root NS: MyCompany.Sales.Generic AdapterDbSpecificNamespaceSuffix: DAL Resulted DBGeneric NS: MyCompany.Sales.Generic Resulted DBSpecific NS: MyCompany.Sales.Generic.DAL

What do you want to achieve? Have you notice that you can add additional interfaces and namespaces? (Ref: LLBLGenPro Help - Using the designer - Adding and editing entities). Also, there is a plugin to bulk-set interfaces/namespaces to entities.

David Elizondo | LLBLGen Support Team
nottinbe
User
Posts: 46
Joined: 15-Mar-2007
# Posted on: 23-May-2008 23:59:14   

I would like to have

Root NS: MyCompany.DAL AdapterDbGenericNamespaceSuffix: Model <-- Missing AdapterDbSpecificNamespaceSuffiix: Adapter

Resulted DBGeneric Project\NS: MyCompany.DAL.Model Resulted DBSpecific Project\NS: MyCompany.DAL.Adapter

I dont see the reasoning for forcing the specific namespace to be a sub-namespace of the generic one.

Thanks, Brian

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-May-2008 06:51:44   

Brian, I never thought about it (the default structure of the namespaces).. however, here is an easy workaround: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=11988&StartAtMessage=0&#66595

Cheers.

David Elizondo | LLBLGen Support Team