How soon...

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 23-Feb-2005 01:49:16   

Otis wrote:

Very soon you'll be able to add this code to the native generated code in a special region which is preserved between code generation cycles so you don't need any derived entities just to add this.

Just our of curiosity, how soon would this be you think? smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Feb-2005 09:06:46   

Next week. (if everything goes as planned. stuck_out_tongue_winking_eye ) But it might be the end of next week, depends on how long I'm busy adding the last few features. Most of the things are pretty small, but yesterday I found out that adding user code regions to classes is very time consuming disappointed

Frans Bouma | Lead developer LLBLGen Pro
TlighT
User
Posts: 20
Joined: 19-Aug-2004
# Posted on: 24-Feb-2005 14:24:01   

Will this feature be able to preserve additional interfaces as well?

f.e.

public class SomeEntity : EntityBase2, ISerializable, IMyCustomInterface

I use this often on derived entities.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Feb-2005 15:27:58   

TlighT wrote:

Will this feature be able to preserve additional interfaces as well?

f.e.

public class SomeEntity : EntityBase2, ISerializable, IMyCustomInterface

I use this often on derived entities.

I haven't thought of that, I can add that. I have to test if it compiles though:

public class SomeEntity : EntityBase2, ISerializable
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
, IMyCustomInterface
// __LLBLGENPRO_USER_CODE_REGION_END

So if it compiles I'll add it. I'll do some tests (also with VB).

(edit) ok works in both VB.NET and C#. simple_smile I've added such a region to entity.Template, entityAdapter.template, entityUsingEntityBase.template and entityBase.template, so you can implement an interface in the base class of a 2-class scenario as well.

Frans Bouma | Lead developer LLBLGen Pro
TlighT
User
Posts: 20
Joined: 19-Aug-2004
# Posted on: 24-Feb-2005 17:39:18   

Otis wrote:

(edit) ok works in both VB.NET and C#. simple_smile

That is great smile I'm sure this functionality will save me a lot of time creating derived entities.