After getting remoting working in my WinForms application, I still have a question or two. First, I noticed that some of my objects are successfully using remoting, and some are still trying to run locally. For example, I have a NameValueListBase object that is NOT using remoting, but I want it to:
Public Shared Function getList(ByVal showDealUrlsOnly As Boolean, Optional ByVal showFriendlyName As Boolean = True) As webServiceNVL
Return New webServiceNVL(showDealUrlsOnly, showFriendlyName)
Using dr As New SafeDataReader(.ExecuteReader)
IsReadOnly = False
Me.Add(New NameValuePair(.GetGuid("webServiceID"), .GetString("webServiceFriendlyName")))
IsReadOnly = True
Is this because I am not using a DataPortal.Fetch method, which would force it to use the remote DataPortal identified in the app.config of the WinForms application? Are there better CSLA references out there, in regards to Remoting, than the few pages in the book?
Thanks in advance!
Yeah, you're going to want to use DataPortal_Fetch so the data portal can do whatever you configure it to do. I haven't looked in a while, but I'm guessing there's an example in Project Tracker you can look at - I can also post a sample NVL I have, but all my bo's are in C#. Let me know if you want to see one.
I'm not aware of any CSLA references out there in regards to remoting, besides the book. There's tons of stuff on remoting, though. Of course CSLA just uses remoting (if you tell it to).
Thank you. I found the RoleList object in ProjectTracker, which inherits from NameValueListBase. It correctly uses the DataPortal.Fetch:
PublicShared Function GetList() As RoleList If mList Is Nothing Then
Copyright (c) Marimer LLC