Archive

Posts Tagged ‘framework 4.0’

Silverlight and RIA services

September 10, 2010 Leave a comment

Silverlight 4.0 release is ships with a new WCF RIA framework,

In context of silverlight application, as they span across client machines and from there they calls service to provide data to user. So we can come up with architecture which is something like below,



(Gap between Client and server side)

On the left side it is Silverlight client application and data access on the right hand side.

Between this two is “the central gap”(Question mark) which has to be cover by some kind of distributed technology and we have several possibilities in silverlight such as the following listed in order they are layered on each other,

1]Via Sockets

2]Via HTTP : This can be possible by passing backward and forward xml.

3]Via Windows communication foundation: There are two ways to communicate with silverlight first is via HTTP and another is Via TCP.

Silverlight is a one possible client for WCF Data Services and the client library does offer some higher level abilities than basic CRUD over entity sets with capabilities such as;

  • Can turn LINQ formed queries into URI based syntax compatible withOData
  • Auto tracking of changes made to entities ( and entity sets ) returned from WCF Data Services to make for automatic submission of changes
  • Can deal with concurrent updates and the errors/retries that are needed to deal with those situations
  • batching of queries/modifications to the server

but the still level of “linking” between client and services is still low.

Consequently, in RIA Services application there is the tooling and framework support for sharing a richer set of objects between the client and the service than you’d see with a solution built around something lower level like a pure WCF solution allowing for a lot less friction in terms of;

  • Ability of server database entity available on client side.
  • Flexibilty for Searialized queries development on client side which will be then available on server for execution purpose.
  • Provives automatic trailing of entity changes on client side.
  • Built in validation mechanism.
  • You can add your any arbitary code on server side for business logic.
  • It provides buiit in asp.net services like membership, roles, profile with a Silverlight client.

Note: “ RIA not only support silverlight application but can also work with AJAX applications too.”

There is a nice video on WCF RIA service implementation which you can view from here,
Reference article for getting started:  Getting started

Why do i go with entity framework?

September 3, 2010 Leave a comment

I read up at number of places that why should i go with entity framework rather with L2S,nHiebernet or ADO.net

But i found a useful link for you all to help you out to understand the exact features which are more helpful to you than other ORM tool,

Click here for complete detail,

New features of c# framework 4.0

May 3, 2010 1 comment
Below are the new features of framework 4.0:
1]Dynamic:Now you can create dynamic objects and let their types be determined at run time.
2]Covariance and Contravariance:Variance on generic type parameters in interfaces and delegates is another important feature of this release. It doesn’t add much new functionality, but rather makes things work as you expected them to in the first place. The major advantage is hidden in this simple line, which didn’t compile until C# 4.0
3]Optional (or Default) Parameters:Now you can assign a default value to a parameter right within the method declaration. The user of the method can either pass a value or simply skip the argument. In the latter case, the default value is passed to the method.
4]Named Arguments:The order of parameters in a method declaration and the order of arguments you pass when calling the method don’t need to match anymore. You can provide arguments in any order you like by specifying parameter names in a method call. This might also improve the readability of your code.
5]Improved COM Interop:The introduction of the dynamic keyword, optional parameters and named arguments enables improvement of COM interop.