Multiple LLBLGen Projects

Posts   
 
    
bjacobs
User
Posts: 73
Joined: 20-Aug-2008
# Posted on: 14-Feb-2014 22:35:44   

LLBLGen 4.0 Adapter Pattern SQL Server 2012

I have the following scenario:

We have developed a core data access application that revolves around data that is contained within all of the projects we write. It would include items such as User, Business, Person, Address, Email, Phone, SecurityGroup, SecurityItem, Document, Notification, etc.

When we build a custom application the core is included with it and then we create a new LLBLGen Project for the domain specific entities for the project.

When we do this we are always regenerating many of the same entities into both projects. So for example if we build a custom application that involves, say home building, we might add a House entity and Subdivision entity, etc. These both might have an address property, so we include the address table in both projects.

Is there a way to join multiple LLBLGen Projects to act as one, so that we could put the common items in one project and not in the second?

Thanks,

Billy Jacobs

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Feb-2014 08:34:46   

Hi Billy,

If I understand you correctly, you have a ProjectX that contains entities A,B,C that are the core set of entities. Then you have a custom application that requires that you create a new ProjectY with entities D,E. Now you want to mix both Projects?

As I see it, you have these options:

a. Build a full generated code for the core project. Then your ProjectY generates only entities D and E but that generated code references the ProjectX's generated code.

b. Create your ProjectY and import the ProjectX entities. You can do this with the Import feature.

I hope that those options make sense in your scenario.

David Elizondo | LLBLGen Support Team
bjacobs
User
Posts: 73
Joined: 20-Aug-2008
# Posted on: 15-Feb-2014 18:14:33   

If I use solution a I would lose the ability to prefetch entities and add relations in RelationPredicateBuckets that are related to D,E, but that are only contained in A, B, C correct? I am assuming when you said build a full generated project you did not mean to include D,E in project X that contains A,B,C.

Thanks,

Billy

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Feb-2014 06:20:08   

bjacobs wrote:

If I use solution a I would lose the ability to prefetch entities and add relations in RelationPredicateBuckets that are related to D,E, but that are only contained in A, B, C correct? I am assuming when you said build a full generated project you did not mean to include D,E in project X that contains A,B,C.

Yes, you are right on your both assumptions. You cannot prefetch or make relations between two generated codes assemblies from two different LLBLGen projects. Maybe you should look into the Import feature.

David Elizondo | LLBLGen Support Team