开发者

The follow up link, to this WCF RIA Silverlight tutorial, is confusing

Till th开发者_JS百科e below it works fine

http://msdn.microsoft.com/en-us/library/ee796239(v=vs.91).aspx#Y2918

From the below link nothing works, from where did _customer context come from?

http://msdn.microsoft.com/en-us/library/ee707338(v=vs.91).aspx


Here is the code from Walkthrough: Creating a RIA Services Solution where _customerContext is defined.

Imports System.ServiceModel.DomainServices.Client
Imports RIAServicesExample.Web

Partial Public Class MainPage
    Inherits UserControl

    Private _customerContext As New CustomerDomainContext

    Public Sub New()
        InitializeComponent()

        Dim loadOp = Me._customerContext.Load(Me._customerContext.GetCustomersQuery())
        CustomerGrid.ItemsSource = loadOp.Entities
    End Sub

End Class
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜