Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Silverlight TV 41: Top Tips for WCF RIA Services

Download

Right click “Save as…”

On this episode, Dinesh Kulkarni shares his top tips for creating streamlined and performant WCF RIA Services applications. He walks through some key decision points while creating domain services (server side) for a Silverlight and RIA Services application. Among the tips Dinesh discusses are some of the benefits of creating the minimal number of entities, operations, and amount of data required for your application. He also discusses how to connect RIA Services to:
  1. Entity Framework
  2. LINQ to SQL
  3. nHibernate
  4. Your own custom business objects
Other topics Dinesh walks step-by-step through include:
  • hooking RIA Services up to your own POCO classes
  • adding role-based authorization
  • how to determine what objects will be exposed by RIA Services to the client
  • adding validation
  • identifying keys and associations for entities
  • indicating when to return object graphs
  • how to use the Composite attribute to bundle objects graphs
This is a great deep dive by one of the masterminds behind WCF RIA Services.

Relevant links:

Follow us on Twitter @SilverlightTV or on the web at http://silverlight.tv 


book 

Are you developing with Windows Phone 7? You can pre-order Learning Windows Phone Programming today, by Jaime Rodriguez, Yochay Kiriaty and John Papa! Or check out the book's web site.

Tags:

Follow the Discussion

  • Kelps Leite de SousaKelps Kelps

    Great! Just what I needed to help me do my RIA Services session for TechEd Brazil 2010!

  • Salvador Gomez RetamozaSalvadorHGR Salvador

    That is excellent! I was thinking exactly the wrong way. Being able to use POCOs could improve a lot the performance when needed.
    Thanks Dinesh, and Jhon.

  • Thank you Dinesh

    We need more videos like this one; we're already way beyond the saturated beginner's series that continue to pop up everywhere.


    This is the first video I've seen that takes in consideration that many of us started heavy learning the VS2010 Stack over a year ago..

    Now I know what I was doing wrong
    Doing an include across Many relationship tends to give really bad performance as the generated SQL query is really complex.. I was doing it wrong

    Dinesh, You saved my day and many days to come by pointing me on the right direction

    Smiley

  • Johan DanforthJohan Danforth

    Good stuff, we need more demos like this one with POCOs and any kind of repository, perhaps a few tips and tricks around update scenarios as well?
    :)

  • excellent thanks very helpful

  • very good!
    It's high time that we need samples like this (I remember an very good series of blog posts by Brad Abrams)
    I'm actually working on an enterprise app that use nHibernate as DAL and WCF RiaServices on the wire; I've got to say that it's more tricky that is seems at a first glance, primarily: limitations on the generated DomainContext (just today I'm excited about the release of sp1) and performance issues when loading complex object graph... (eager/lazy load)

    But despite this, nHibernate and WCF RIA are a great pair!

  • Beau G. PalmquistShimoakki Dream and Pursue

    Hey John and Dinesh,

    The company I develop for uses a third party DAL generator called LLBL Gen, and I was wondering if either of you had some information about how I could incorporate that DAL with WCF RIA services?  Thanks in advance guys.  Great show!

  • The nHibernate example, posted here, is a corrupt zip.

    could someone please upload a non-corrupt version?

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.