Adapter template constructors

Posts   
 
    
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 12-May-2006 22:27:40   

Can you surround the EntityClasses' custructors with a REGION...ENDREGION so I can collapse them when working on the entities? I think you had added this to 1.2005.

Thanks, BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 13-May-2006 09:43:25   

the region wasn't there, but I can add them of course simple_smile Will do.

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 15-May-2006 18:53:06   

Otis wrote:

the region wasn't there, but I can add them of course simple_smile Will do.

Much appreciated!

BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 16-May-2006 15:31:51   

Btw, why do you want the constructor regions added? As there's more generated code in there and you'll see that too...

Frans Bouma | Lead developer LLBLGen Pro
pilotboba
User
Posts: 434
Joined: 05-Aug-2005
# Posted on: 16-May-2006 16:17:38   

Otis wrote:

Btw, why do you want the constructor regions added? As there's more generated code in there and you'll see that too...

True.

I guess now that I am seperating the code using partial classes and we don't edit the one with all the genned code in it, it isn't much of an issue any more.

One think that I noticed, why is the

public override bool CheckIfIsSubTypeOf(int typeOfEntity)

method generated for entities that don't use inheritence? What is this used for?

Thanks, BOb

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 16-May-2006 17:06:46   

pilotboba wrote:

Otis wrote:

Btw, why do you want the constructor regions added? As there's more generated code in there and you'll see that too...

True.

I guess now that I am seperating the code using partial classes and we don't edit the one with all the genned code in it, it isn't much of an issue any more.

I figured as much wink . Partial classes is what you want, use the user code regions only if you can't use partial classes.

One think that I noticed, why is the

public override bool CheckIfIsSubTypeOf(int typeOfEntity)

method generated for entities that don't use inheritence? What is this used for?

That's indeed not necessary. I'll add an IF statement around it in the templates simple_smile Good catch!

Frans Bouma | Lead developer LLBLGen Pro