Use Entity Classes on client side RRS feed

  • Question

  • Hi im use DB->Entity Framework -> ADO.NET Data Serveces

    For example have 3 tables (classes)
    Type(type_id,type_name) User-Phone 1 to many,Type->User 1 to many
    Client is WInForm application whith ServiceReference to Entity Classes and work in two mode
    On-line: use ADO.NET Data Serveces
    Off-line: buffered users and phones objects

    I'm have some questions:
      How store types on client side? its file or localDB? in XML or bin format? (serialization)
      How create and store new User and  phone classes in off-line mode
      How use databinding this classes to datagridview if they 1-to many
    Thank, wait for answers and simples
    • Moved by Noam Ben-Ami - MSFT1 Friday, January 22, 2010 6:04 PM (From:ADO.NET Entity Framework and LINQ to Entities)
    Friday, January 22, 2010 8:27 AM

All replies

  • 1. We don't currently have an in-the-box solution for automating offline client applications - if you want to have an off-line enabled client experience you will need to have your own storage mechanism for the data (flat file, sql express, etc).

    2. We added some features in the new version of Data Services that make binding to controls like the gridview easier. Take a look at this blog post to get an idea of how the new binding functionality works: http://blogs.msdn.com/astoriateam/archive/2009/09/17/introduction-to-data-binding-in-silverlight-3-with-ctp2.aspx

    Shayne Burgess
    Program Manager
    Friday, February 12, 2010 12:43 AM
  • try WCF DataServices Offline (Astoria offline) - it uses local sql compact db when connection to service is unavailable. I'm not sure it's in RTM stage, but it should work fine - I saw tutorials and samples.

    Here is webcast with tutorial. It's in russian, but sample and presentation is in english, I'm sure you will understand. http://www.techdays.ru/videos/1291.html

    also there is source code for this tutorial http://www.techdays.ru/get.aspx?MID=c83eb821-ddde-4a81-8d61-dd391867ff90&Download=True
    • Proposed as answer by Boyd_Rice Friday, February 12, 2010 10:34 AM
    Friday, February 12, 2010 10:34 AM
  • Hi Boyd_Rice,

    Thanks for the info on Astoria Offline. I am looking for offline support for our application....But still its in alpha release stage. Any idea on when will the RTM will release. Latest CTP release does not include this. Please help


    Saturday, March 5, 2011 3:57 AM