silverlight 5开发【vb版】(12)-数据和RIA基础(2)
?5、继续增加数据实体模型
?
?
6、然后重新生成解决方案
7、增加域服务类
?
8、开始客户端编程
?
?
?
最后编写代码
Imports System.ServiceModel.DomainServices.ClientImports SilverlightApplication7.WebPartial 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 SubEnd Class
?
?
?