MIX 09- Data Services 1.5, Windows Azure Tools, Silverlight 3, Expression Blend 3,ASP.NET MVC 1.0 and .NET RIA Services

ADO.NET Data Services v1.5 CTP1 http://blogs.msdn.com/astoriateam/archive/2009/03/16/ado-net-data-services-v1-5-ctp1-now-available-for-download.aspx download: http://www.microsoft.com/downloads/details.aspx?FamilyID=3e3d4eaf-227b-4ad3-ad0d-3613db8aa9df March CTP of the Windows Azure Tools and SDK http://blogs.msdn.com/jnak/archive/2009/03/18/now-available-march-ctp-of-the-windows-azure-tools-and-sdk.aspx download: http://download.microsoft.com/download/8/4/2/84291A86-26A4-44AB-8024-5A6700324061/VSCloudService.exe Hotfix for Windows Azure Tools and SDK Hotfix: Native Debugging Improvements http://go.microsoft.com/fwlink/?LinkId=145526 Hotfix: Support for FastCGI on the Development Fabric http://support.microsoft.com/kb/967131 Silverlight 3 Beta Released! http://blogs.msdn.com/silverlight_sdk/archive/2009/03/18/silverlight-3-beta-released.aspx http://silverlight.net/getstarted/silverlight3/default.aspx download: VS Tools : http://go.microsoft.com/fwlink/?LinkID=143571 runtime: http://go.microsoft.com/fwlink/?LinkID=143433 SDK…

1

ADO.NET Data Services 的Self-Hosting例子(.NET 3.5 SP1)

之前有写一篇关于ADO.NET Data Services hosting在一个控制台程序中的做法。详细见–ADO.NET Data Services 的Self-Hosting实例http://blogs.msdn.com/ccboy/archive/2008/01/12/ado-net-data-services-self-hosting.aspx今天找了一下,发现原来的代码找不到,于是重新尝试了一下,看看.NET 3.5 SP1之后是否有变化。 ADO.NET Data Services逐渐成为一个非常不错的工具和武器,它完美的和ADO.NET Entity Framework结合,可以说很大程度弥补了EF目前分布式开发的短板,同时Data Services本身也成功的削弱了WCF原来基于SOAP的组件通信的沉重,可以说利用了WCF最好的部分。 例子分为测试了两种情况,一种是使用WCF配置文件的方式;一种是不需要配置文件的方式。当baseAddress 参数传空,系统会默认是使用配置文件的方式。 另外例子尝试使用自定义的数据源,即非ADO.NET EF和 SQL To LINQ的方式。 例子可以在这里下载:http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=ccBoy&ReleaseId=1391 下面的信息是非常有用的Data Service Host (ADO.NET Data Services Framework)http://msdn.microsoft.com/en-us/library/cc668805.aspx NET Framework Class Library–WebServiceHost Classhttp://msdn.microsoft.com/en-us/library/system.servicemodel.web.webservicehost.aspx


more information …about VS2008 SP1 and .NET FX 3.5 SP1

ScottGu’s – Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx What’s New in the SP1 Beta? – ADO.NET and Entity Framework http://blogs.msdn.com/adonet/archive/2008/05/12/what-s-new-in-the-sp1-beta.aspx ADO.NET Entity Framework –MSDN 文档 http://vs2008sp1docs.msdn.microsoft.com/en-us/ms439009.aspx Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx ADO.NET Entity Framework Query Samples http://code.msdn.microsoft.com/EFQuerySamples/Release/ProjectReleases.aspx?ReleaseId=1013 ADO.NET Data Services Framework Beta…

1

ADO.NET Data Services 的Self-Hosting实例

Fast, simple test app for ADO.NET Data Serviceshttp://blogs.msdn.com/marcelolr/archive/2008/01/02/fast-simple-test-app-for-ado-net-data-services.aspx Mike Taulty 的Webloghttp://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/12/19/10028.aspx 以及Christian Weyer的Webloghttp://blogs.thinktecture.com/cweyer/archive/2007/12/11/415057.aspx 都有讨论Astoria ServiceHost在一个控制台的应用中,因为目前版本的Astoria CTP只提供了WebHosting/ASP.NET(模式),当然这非常容易应用在Web开发的环境中,看了他们的Weblog,自己测试了一下,果然是可行的。   1.先创建一个控制台的应用(VS2008)2.增加一个ADO.NET Entity Data Model(或者是加入一个已经创建EDM Lib的项目引用) 创建一个ObjectContext,比如:BlogEntities3.创建SvcImp的cs文件,实现WebDataService (BlogSvcImp.cs) using System;using System.Web;using System.Collections.Generic;using System.ServiceModel.Web;using System.Linq;using Microsoft.Data.Web;using BlogModel; namespace SelfHostSvc{    public class BlogSvcSelfHost : WebDataService<BlogEntities>    {         public static void InitializeService(IWebDataServiceConfiguration config)        {             config.SetResourceContainerAccessRule(“*”, ResourceContainerRights.AllRead);             // Example for service operations            //…

2