Replace Two-Class adapter with partial classes

Posts   
 
    
clint
User
Posts: 150
Joined: 15-Nov-2005
# Posted on: 02-Mar-2007 17:26:53   

I am currently using the two-classes variant of adapter in version 2.0 since I had used the third-party template which did the same thing back in version 1.x.

I used the two-classes variant since I liked the idea of keeping my custom entity code in a separate file. But now that version 2.0 generates the entities as partial classes, I'd rather store my custom code in partial classes instead of the subclasses.

I'm wondering if I can just delete all the enity subclasses from the generic data project? I'm assuming the generated entity classes are the same regardless of whether I'm using the one-class adapter or two-class adapter variant.

Thanks.

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 03-Mar-2007 02:37:47   

I don't believe there is any difference. When I go back and forth in my projects the only difference are a couple of extra blank lines and both scenarios use the same template.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 03-Mar-2007 12:15:33   

If you use inheritance, you will have to regenerate again. I'd simply regenerate again after the My* classes are removed.

Frans Bouma | Lead developer LLBLGen Pro