A simple extenstion to ResultsetFields class

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 28-Aug-2006 13:26:09   

Here is my article (+code) on how to extend ResultsetFields

http://cs.rthand.com/blogs/blog_with_righthand/pages/Extending-LLBLGenPro_2700_s-ResultsetFields-to-work-like-List.aspx

Let me know if you find it useful.

Posts: 1268
Joined: 10-Mar-2006
# Posted on: 28-Aug-2006 16:56:44   

Looks good. Thanks!

If you talk nice to Otis, he might make that method virtual for you in the shipping templates. :-)

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 28-Aug-2006 19:49:02   

WayneBrantley wrote:

Looks good. Thanks!

If you talk nice to Otis, he might make that method virtual for you in the shipping templates. :-)

Already did talk to him wink . Anyway it is not a big deal and you usually won't need (de)serialization - except when looking at (Rh)ResultsetFields through debugger visualizer I am going to present shortly. Oops, talking too much simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 29-Aug-2006 16:44:55   

I made the GetObjectData method virtual in the templates which aren't for backwards compatibility. Available in next build.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1268
Joined: 10-Mar-2006
# Posted on: 08-Jan-2007 01:15:39   

Otis, I am trying to use the above enhancement.

Did you make this method virtual? I am running templates downloaded in December and this is not virtual.

(I am guessing it slipped through your net. Hope this is not considered 'thread hijacking' simple_smile )

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 08-Jan-2007 09:05:24   

It's virtual in the templates which arent for backwards compatibility. So you have to move the 'backwardscompatibility' templatebinding to the bottom of the list. simple_smile

Frans Bouma | Lead developer LLBLGen Pro