Sunday, February 28, 2010

WCF RIA Services - Part IV, Presentation Models

Presentation model aggregates data from multiple entities in the data access layer. It is useful when you do not want to directly expose the entities in your data access layer to the client.

You should read these links:

I’ve implemented sample described here.

Thursday, February 18, 2010

WCF RIA Services - Part I, changes in features known from previous releases & design tools

I wrote a very long post about .NET Ria Services with 20 samples four months ago. In this series of posts I’ll describe WCF RIA Services presented at PDC. In this post, I’ll present 9 updated samples and VS 2010 design tools.

Business Application Demo

App2 App3 App4

Silverlight Business Applications: Design tools 

SelectQuery2 Data Sources Window: Query selection

ConfigFields2 Data Sources Window: Control selection

Main Dragging the Product node to the designer (query with parameters)

DataPager Dragging the Product node onto the DataPager

Details Data Sources Window: Details mode selection

Details2 Dragging the Product node to the designer (Details mode)

Customize1 Customize2 Customize3 Data Sources Window: Custom control selection

Customize4 Dragging the User node to the designer (Details mode, custom control)

 

 Server validation &  resolving concurrency conflicts

 

Windows Authentication

 

A Https Enabled DomainService

 

DomainContext: cross-domain scenario

 

Loading Data from Related Entities

Silverlight Business Applications: Design tools 

Related1 Related2 Dragging the Products node (the child node of the Category node) to the designer

Multiple DomainContexts

WCF RIA Services Class Libraries

ASP.NET Dynamic Data integration

Other useful samples I have found

Useful links

Saturday, January 23, 2010

New features in Silverlight 4 Beta: C# 4 & Sharing Assemblies with .NET Apps

Have you tried to use new C# 4 features in Silverlight 4 Beta ? Read this post.

I’ve made Silverlight sample (CSharp4) to demonstrate new C# 4 features and new BCL types

  1. Dynamic Binding
  2. Named and Optional Arguments 
  3. Tuples

Silverlight 4 has also changes in Collection Sets and parsing and formatting time intervals.

Covariance and contravariance don’t work in Silverlight 4 Beta (I have tested it – you can’t compile code with variance).

I’ve built second Silverlight example (ModifyHTMLbyNET) to show HTML /JavaScript integration with  dynamic type.

Both samples you can download below.

Dynamic type is very useful for native integration (COM), too.

You can read about sharing Silverlight assemblies with .NET here and here.

Useful links

Tuesday, January 19, 2010

New features in Silverlight 4 Beta: WCF Data Services

ADO.NET Data Services has changed its name to WCF Data Services. Today I’ll write about consuming these data services from Silverlight 4 Beta client.

I have created Silverlight 4 application consuming .NET 4.0 WCF Data Service in x-domain scenario (which is supported in updated data services). Silverlight 4 client library includes most of the new features previewed in the ADO.NET Data Services CTP2.  Using the Visual Studio 2010 Beta 2 Add Service Reference feature with the Silverlight 4.0 Beta requires a few extra steps from the normal process.

OData

The Open Data Protocol Visualizer for Visual Studio CTP1  (see screenshot above)  provides a read-only visualization of the types, properties, associations, and other objects in the Entity Data Model (EDM) returned from an Open Data Protocol’s metadata endpoint. You can download and install it using Extension Manager.

Useful links