Multiple Catalogs and namespaces

Posts   
 
    
MartinZ
User
Posts: 2
Joined: 24-Jul-2008
# Posted on: 24-Jul-2008 23:02:57   

I am currently using LLBLGEN 2.5 and am looking for a way to create seperate projects for each catalog in the designer (running the generation only once). Each project will have a corresponding namespace associated with it and will contain all entities/entitycollections for that specific catalog:

Company.Data.Servicing Company.Data.Products Company.Data.Sales

In addition to this I am looking to generate another project that will contain the PersistanceInfoProvider for all projects above and be able to access them using a common data adapter. In the PersistanceInfoProvider class, each method could then have an attribute that would specify which project/catalog to target and by using reflection could call the appropriate CRUD operations of the entity.

Is this something that is possible using LLBLGEN templates/tasks to simplify a single generation process? If so, what would be the best way to approach creating these templates/tasks? Any suggestions are welcome...

Thanks,

Martin

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 25-Jul-2008 13:13:36   

Maybe the following thread might help you out: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12098

While modifying the NameSpace of the DBGeneric Namespace or suffix.

MartinZ
User
Posts: 2
Joined: 24-Jul-2008
# Posted on: 28-Jul-2008 15:23:48   

Thanks Walaa,

Using this feature helped in getting the desired namespace/project output that I was looking for. Creating a template for the Singleton object in which I can use reflection to get the appropriate entity object by type should work great. Thanks for your help....

  • Martin