silverlight 5开发【vb版】(12)-数据和RIA基础(2)
程序员文章站
2022-03-02 11:47:12
...
5、继续增加数据实体模型
6、然后重新生成解决方案
7、增加域服务类
8、开始客户端编程
最后编写代码
Imports System.ServiceModel.DomainServices.Client Imports SilverlightApplication7.Web Partial Public Class MainPage Inherits UserControl Private _customerContext As New MybookContext Public Sub New() InitializeComponent() Dim loadOp = Me._customerContext.Load(Me._customerContext.GetBooksQuery()) booksgrid.ItemsSource = loadOp.Entities End Sub End Class