Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Introduction to ADO.NET Data Services/RIA Services

, 25 Feb 2010 CPOL
An introduction to ADO.NET Data Services / RIA Services.
DataServicesDemoApp.zip
DataServicesDemoApp
RIADataServicesDemoApp.Web
App_Data
bin
RIADataServicesDemoApp.Web.dll
ClientBin
RIADataServicesDemoApp.xap
CustomRIAServices
Model
WCFTest.edmx
Models
Shared
obj
Debug
edmxResourcesToEmbed
Model
Intellisense
Resources
Sources
TempPE
Properties
Resources
RIADataServicesDemoApp.Web.csproj.user
Services
RIADataServicesDemoApp
Assets
Resources
Bin
Debug
ActivityControl.dll
ar
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.resources.dll
de
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
es
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
fr
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
it
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
ja
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
ko
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
RIADataServicesDemoApp.dll
RIADataServicesDemoApp.xap
System.ComponentModel.DataAnnotations.dll
System.Reactive.dll
System.Windows.Controls.Data.DataForm.Toolkit.dll
System.Windows.Controls.Data.dll
System.Windows.Controls.Data.Input.dll
System.Windows.Controls.Data.Toolkit.dll
System.Windows.Controls.dll
System.Windows.Controls.Navigation.dll
System.Windows.Controls.Ria.dll
System.Windows.Controls.Toolkit.dll
System.Windows.Data.dll
System.Windows.Ria.dll
System.Xml.Linq.dll
zh-Hans
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
zh-Hant
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.Windows.Controls.Data.resources.dll
System.Windows.Controls.Navigation.resources.dll
System.Windows.Controls.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
Controls
Generated_Code
Models
Shared
Helpers
Libs
ActivityControl.dll
System.Windows.Controls.Data.DataForm.Toolkit.dll
Models
obj
Debug
Assets
TempPE
Views
Login
Properties
RIADataServicesDemoApp.csproj.user
Views
Login
Web
Resources
WCFDataServicesDemoApp.Web
bin
WCFDataServicesDemoApp.Web.dll
ClientBin
WCFDataServicesDemoApp.xap
DemoApp.edmx
obj
Debug
edmxResourcesToEmbed
DemoApp.csdl
DemoApp.msl
DemoApp.ssdl
TempPE
DemoApp.Designer.cs.dll
WCFDataServicesDemoApp.Web.dll
Properties
WCFDataService.svc
WCFDataServicesDemoApp.Web.csproj.user
WCFDataServicesDemoApp
Bin
Debug
ar
System.ComponentModel.DataAnnotations.resources.dll
de
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
es
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
fr
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
it
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
ja
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
ko
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
System.ComponentModel.DataAnnotations.dll
System.Data.Services.Client.dll
System.Windows.Controls.Ria.dll
System.Windows.Data.dll
System.Windows.Ria.dll
System.Xml.Linq.dll
WCFDataServicesDemoApp.dll
WCFDataServicesDemoApp.xap
zh-Hans
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
zh-Hant
System.ComponentModel.DataAnnotations.resources.dll
System.Data.Services.Client.resources.dll
System.Windows.Data.resources.dll
System.Xml.Linq.resources.dll
obj
Debug
TempPE
Properties
Service References
ServiceReference1
Reference.datasvcmap
service.edmx
WCFDataServicesDemoApp.csproj.user
<?xml version="1.0" encoding="utf-8"?>
<root>
  <!-- 
    Microsoft ResX Schema 
    
    Version 2.0
    
    The primary goals of this format is to allow a simple XML format 
    that is mostly human readable. The generation and parsing of the 
    various data types are done through the TypeConverter classes 
    associated with the data types.
    
    Example:
    
    ... ado.net/XML headers & schema ...
    <resheader name="resmimetype">text/microsoft-resx</resheader>
    <resheader name="version">2.0</resheader>
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
        <value>[base64 mime encoded serialized .NET Framework object]</value>
    </data>
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
        <comment>This is a comment</comment>
    </data>
                
    There are any number of "resheader" rows that contain simple 
    name/value pairs.
    
    Each data row contains a name, and value. The row also contains a 
    type or mimetype. Type corresponds to a .NET class that support 
    text/value conversion through the TypeConverter architecture. 
    Classes that don't support this are serialized and stored with the 
    mimetype set.
    
    The mimetype is used for serialized objects, and tells the 
    ResXResourceReader how to depersist the object. This is currently not 
    extensible. For a given mimetype the value must be set accordingly:
    
    Note - application/x-microsoft.net.object.binary.base64 is the format 
    that the ResXResourceWriter will generate, however the reader can 
    read any of the formats listed below.
    
    mimetype: application/x-microsoft.net.object.binary.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
            : and then encoded with base64 encoding.
    
    mimetype: application/x-microsoft.net.object.soap.base64
    value   : The object must be serialized with 
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
            : and then encoded with base64 encoding.

    mimetype: application/x-microsoft.net.object.bytearray.base64
    value   : The object must be serialized into a byte array 
            : using a System.ComponentModel.TypeConverter
            : and then encoded with base64 encoding.
    -->
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
    <xsd:element name="root" msdata:IsDataSet="true">
      <xsd:complexType>
        <xsd:choice maxOccurs="unbounded">
          <xsd:element name="metadata">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
              </xsd:sequence>
              <xsd:attribute name="name" use="required" type="xsd:string" />
              <xsd:attribute name="type" type="xsd:string" />
              <xsd:attribute name="mimetype" type="xsd:string" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="assembly">
            <xsd:complexType>
              <xsd:attribute name="alias" type="xsd:string" />
              <xsd:attribute name="name" type="xsd:string" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="data">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
              <xsd:attribute ref="xml:space" />
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="resheader">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
              </xsd:sequence>
              <xsd:attribute name="name" type="xsd:string" use="required" />
            </xsd:complexType>
          </xsd:element>
        </xsd:choice>
      </xsd:complexType>
    </xsd:element>
  </xsd:schema>
  <resheader name="resmimetype">
    <value>text/microsoft-resx</value>
  </resheader>
  <resheader name="version">
    <value>2.0</value>
  </resheader>
  <resheader name="reader">
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <data name="ErrorBadUserNameOrPassword" xml:space="preserve">
    <value>The username or password is incorrect</value>
  </data>
  <data name="MembershipCreateStatusDuplicateEmail" xml:space="preserve">
    <value>A user name for that e-mail address already exists. Please enter a different e-mail address.</value>
  </data>
  <data name="MembershipCreateStatusDuplicateUserName" xml:space="preserve">
    <value>User name already exists. Please enter a different user name.</value>
  </data>
  <data name="MembershipCreateStatusProviderError" xml:space="preserve">
    <value>The authentication provider returned an error. Please verify your entry and try again. If the problem persists, please contact your system administrator.</value>
  </data>
  <data name="MembershipCreateStatusUserRejected" xml:space="preserve">
    <value>The user creation request has been canceled. Please verify your entry and try again. If the problem persists, please contact your system administrator.</value>
  </data>
  <data name="ValidationErrorBadPasswordLength" xml:space="preserve">
    <value>Password must be at least 7 and at most 50 characters long</value>
  </data>
  <data name="ValidationErrorBadPasswordStrength" xml:space="preserve">
    <value>A password needs to contain at least one special character e.g. @ or #</value>
    <comment>Update this if you change your password strength requirements</comment>
  </data>
  <data name="ValidationErrorInvalidEmail" xml:space="preserve">
    <value>Invalid email. An email must use the format username@mycompany.com</value>
  </data>
  <data name="ValidationErrorInvalidUserName" xml:space="preserve">
    <value>Invalid user name. It must contain only alphanumeric characters</value>
    <comment>Update this if you change your policy on username restrictions</comment>
  </data>
  <data name="ValidationErrorPasswordConfirmationMismatch" xml:space="preserve">
    <value>Passwords do not match</value>
  </data>
  <data name="ValidationErrorRequiredField" xml:space="preserve">
    <value>This field is required</value>
    <comment>Generic string for localizing required validation errors</comment>
  </data>
</root>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sacha Barber
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)
 
- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence
 
Both of these at Sussex University UK.
 
Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141216.1 | Last Updated 25 Feb 2010
Article Copyright 2010 by Sacha Barber
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid