Making Generated Entities Internal

Posts   
 
    
hiro5id
User
Posts: 2
Joined: 30-Oct-2008
# Posted on: 30-Oct-2008 16:53:08   

Hello.

I don't have a bug or a problem but rather a question:

(My apologies if I have posted this in the wrong place, but it seems to me it is the best place to ask)

My Question is, is it possible to instruct LLBLGen to generate its Entities with all of its constructors marked as internal?

Because in our architecture, we have our own Factory and Repository classes that creates these Entities. We would like to restrict the user from being able to instantiate an Entity, without using one of our Factory or Repository classes.

Is this possible?

Thank you in advance..

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 30-Oct-2008 21:11:02   

Because everything is generated from templates, you can get LLBLGen to generate pretty much anything you like.

Have a look at Template Studio and the SDK.