Code in vb.net is not created in partial classes?

Posts   
 
    
hellbinder
User
Posts: 12
Joined: 30-Jan-2008
# Posted on: 11-Aug-2011 16:15:08   

Hi,

I have used llblgen for a while now but every time I had to generate code, it was in C#.

Now I have a project where the code generated is in vb.net. I noticed that the classes created are not partial classes? Why is this? Am I missing an option? When I regenerate in C#, the classes are generated as partial.

Any help would be appreciated. I prefer putting custom code in another file int he of the #Custom code section inside the class file

-Miguel Martorell

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Aug-2011 20:28:28   

Partial keyword is not taken into account in VB.Net templates. I think it's that way because that is not mandatory, I mean you can create one partial class even if the generated one is not signed as Partial.

I will confirm if this is the reason. (Edit): Copied from the docs

Partial classes In .NET 2.0, partial classes are introduced and LLBLGen Pro generates all classes for .NET 2.0 as partial classes. For VB.NET this doesn't make a difference as any class can be extended by another code file with a partial class definition with the same name, though in C#, all classes are generated as partial classes. ...

David Elizondo | LLBLGen Support Team
hellbinder
User
Posts: 12
Joined: 30-Jan-2008
# Posted on: 11-Aug-2011 22:47:14   

Awesome! Thanks! Got to learn something new, this would be my first project in VB where I use LLBLGEN.

Didn't know this about partial classes in VB.

Have a great day. smile

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 12-Aug-2011 04:28:31   

You're welcome wink

David Elizondo | LLBLGen Support Team