WCF RIA Services Webinar

I’m performing a free webinar today for DevelopMentor: Turbocharge Silverlight Development w/WCF RIA Services.  It’s taking place today, Wed April 20, 2011, at 3 pm pst, 11 pm bst.  Here’s the description:

Writing a full-fledged Rich Internet Application presents a number of
daunting challenges: forced n-tier, async, latency, validation, concurrency,
and authentication. WCF RIA Services simplifies and streamlines the process
with support for query composability, change-tracking and batch updates,
attributes for presentation and data validation, shared code and async
support. In this seminar Tony will pull back the curtain to show you how
RIA Services performs its magic, and he’ll provide tools and techniques to
reduce the time and effort required to build Silverlight business
applications.

You can download the slides and demos here: http://bit.ly/ria-webinar.

You can download the screencast recording for offline viewing on your pc or mobile device.

About Tony Sneed

Sr. Software Solutions Architect, Hilti Global Application Software
This entry was posted in Technical and tagged . Bookmark the permalink.

14 Responses to WCF RIA Services Webinar

  1. JM says:

    The slides have a footer with Silverlight 2.0 in them and 2007/2008 – these really aren’t SL 2 slides are they? What version is this geared towards, SL4, SL5?

  2. Pingback: Validation with Simple MVVM Toolkit | Tony Sneed's Blog

  3. G Lanphear says:

    Hey Tony,

    I wonder if you could point me to some examples of RIA services which Add records with more than one related record. Every example I find has one main table and a static lookup table. I need to add records into the local data context which will have to save parent first and then related child. And, how would this be done if you are adding multiple records before invoking save changes. The parents would all have zero Ids and the children would all be unrelated. The way I have done this in the past with web forms is to give the record sets temporary keys.

    • Tony Sneed says:

      RIA Services does change tracking on the client in order to handle batch changes. All you have to do is add the parent and child records using the Domain Context, then save the changes. RIA will flag the records as Added and send them all over to the service in one trip, where they will be persisted in the correct order within a single transaction. If the primary keys are identity columns, the values inserted by the database will be propagated back to the client. It all just works.

      I’m not sure if I can find a sample of doing this, but it should be pretty easy to pull off. Let me know if you need help and I’ll see if I can’t put something together.

      Cheers,
      Tony

  4. G Lanphear says:

    Thanks for the reply, Tony. Sorry to bother you with this, but I can’t find examples. So I am following it through and I have a detail record to add which has an associated record, an Incident and the IncidentHistory. (In the final application I will have several more related tables.) I will have a detail view on which I will present to the user elements of both records for input. In the IncidentDetailViewModel, then I will need to instantiate the view model passing both new records in. How then do I do the constructor? The ViewModelDetailBase passes in only one new record type.
    ie.
    public class IncidentDetailViewModel : ViewModelDetailBase

    Of course I may just be missing the key point.

    • G Lanphear says:

      I think we got it now, Tony. Thanks.

      • Bikram Panjikar says:

        Dear G Lanphear & Tony, Right now i am in the same situation as “Lanphear”. Could you please send me some example code. Its quite urgent. Thanks in advance

      • Tony Sneed says:

        @Bikram, Hello and thank you for your interest in my RIA Services webinar. I recorded a two-part screencast on using RIA Services with my Simple Mvvm Toolkit. You can download the screencasts here (click the Download links, not the Streaming links), as well as the sample code for the screencasts. In the screencasts I demonstrate how to perform batch update, insert and delete operations using RIA Services and my toolkit. Good luck!
        Cheers,
        Tony

      • Bikram Panjikar says:

        Dear G Lanpher, Could you please let me know how did you solve your issue. Thanks

      • G Lanphear says:

        Bikram,
        I don’t know how much I can help because I have taken an approach which is much different from what Tony is presenting and my problem was two years ago. Basically I figured it out when I realized that the main record being added has to have all of its chidren and grand-children added before the main record is added to the domain context. It is then that Ria Services will set all of the record IDs. The approach I take differently is one in which I do not bind directly to the model. I never touch the MODEL until the user hits the SAVE button. When I load in the model I load all values into observable properties in memory and then load them back to the model only if they have changed. It’s more complicated than I would like and for a large application I had to create T4 templates to generate my view models with all the load and save functionality. Also I am using KnockoutJS and HTML5 now, so RIA is a thing of the past for me.

  5. Pingback: WCF RIA Services | UserGroup.tv

  6. Bikram Panjikar says:

    Dear Tony,

    Thanks a lot for your prompt reply. Actually i have watched this two video before and started implementation of my project but right now i got strucked in mid of project where i faced the scenario exactly as “G Lanphear” has explained.

    Let me explain my scenario briefly:

    I have three table as below:
    (1) Table: Product
    ProductID (PK, Identity Auto Increment)
    Name
    Other Columns…
    (2) Table: ProductCategory
    ProductCategoryID
    Name
    Other Columns…

    (3) Table: ProductToProductCategory
    ProductID (FK_Product)
    ProductCategoryID (FK_ProductCategory)

    -> Now in ProductDetailView.xaml i am taking all the inputs along with CategoryID

    Scenario: First i need to insert a row in Product Table and then Second row into ProductToProductCategory Table along with auto generated ProductID (from SQL Server) and CategoryID (Input from Combo Box from ProductDetailView.xaml).

    Problem: I will need to instantiate the view model passing both new records in. How then do I do the constructor? The ViewModelDetailBase passes in only one new record type.
    ie.
    public class ProductDetailViewModel : ViewModelDetailBase

    & then need to insert both records in one transaction.

    Your help is highly appreciated. Please send me some sample project on this.

    Thank you so much.

  7. Pingback: WCF RIA Services | UserGroup.tv

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.