Could I get an example of WCF and TypedViews?

Posts   
 
    
jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 14-Apr-2009 15:28:05   

I've searched the help and the forums and can't really find anything with this. I found this thread from a few weeks back but it doesn't really answer my question(s).

http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15430&HighLight=1

My biggest question is if there is a generic way to return these (similar to entity collection) so that I only have one KnownType. I've tried the TypedView2 but didn't have success with it.

I'm not sure if the reason the WCF sample doesn't have any of these is an oversight or if it is Frans way of saying that using TypedViews with WCF is a bad idea.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Apr-2009 19:34:06   

jovball wrote:

My biggest question is if there is a generic way to return these (similar to entity collection) so that I only have one KnownType. I've tried the TypedView2 but didn't have success with it.

Hi Joel, TypedViews, TypedLists and DynamicLists are all dataTables, I think it would be better to pass these over the wire.

jovball wrote:

I'm not sure if the reason the WCF sample doesn't have any of these is an oversight or if it is Frans way of saying that using TypedViews with WCF is a bad idea.

The sample simply doesn't inuclude typedviews but that doesn't mean that htat isn't possible wink

David Elizondo | LLBLGen Support Team
jovball
User
Posts: 443
Joined: 23-Jan-2005
# Posted on: 14-Apr-2009 19:37:45   

David:

I'm not sure I understand you. Are you suggesting that I should return the typed view as a dataset/datatable and then cast it to the typed view?

Can you post a code snippet so I see what you mean?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Apr-2009 22:02:41   

I don't have an example right now, will see if I can do that later for you. Also you can use the ITypedListLgp2 interface way. Look at this: http://llblgen.com/tinyforum/Messages.aspx?ThreadID=13101

David Elizondo | LLBLGen Support Team