WCF RIA Services 快速上手
WCF RIA Services 简化开发RIA n-tier 解决方案。让你快速构建Silverlight n-tier应用程序客户端与服务端的通信。下面我们来看一张图: 下面我们来构建一个简单的DEMO: 首先,下载 Silverlight 4 Tools for Visual Studio 2010 ,建一个Silverlight project: 接下弹出对话框,记得Enable WCF RIA Services: 建立DEMO的表,并插入几条数据: 1: CREATE TABLE [dbo].[tblItem]( 2: [ItemNumber] INT NOT NULL, 3: [ItemDescription] [varchar](50) NULL, 4: [Quantity] [int] NULL 5: CONSTRAINT [PK_tblItem] PRIMARY KEY CLUSTERED 6: ( 7: [ItemNumber] ASC ) 8: ) 9: 10: INSERT INTO [tblItem] 11: ([ItemNumber] 12: ,[ItemDescription] 13: ,[Quantity]) 14: VALUES ('1','Item Name1',1), 15: ('2','Item Name2',2), 16: ('3',