📒
OpenRiaServices
  • Start
  • Prerequisites for Open Ria Services
    • Walkthrough: Installing and Configuring SQL Server 2008 R2 Express with Advanced Services
    • Walkthrough: Installing the AdventureWorks OLTP and LT sample databases
  • Creating Open Ria Services Solutions
    • Walkthrough: Taking a Tour of Open Ria Services
    • Walkthrough: Creating a Open Ria Services Solution
    • Walkthrough: Creating a Open Ria Service with the Code First Approach
    • Walkthrough: Using the Silverlight Business Application Template
    • Walkthrough: Creating a Open Ria Services Class Library
    • Walkthrough: Localizing a Business Application
    • How to: Create a Domain Service that uses POCO-defined Entities
    • How to: Add or Remove a Open Ria Services Link
    • Using the Domain Service Wizard
  • Building Secure Applications with Open Ria Services
  • Deploying and Localizing a Open Ria Services Solutions
    • Troubleshooting the Deployment of a Open Ria Services Solution
    • Troubleshooting the Deployment of a Open Ria Services Solution
    • Walkthrough: Localizing a Business Application
  • Middle Tier
    • Domain Services
      • Walkthrough: Adding Query Methods
      • How to: Add Business Logic to the Domain Service
      • How to: Create a Domain Service that uses POCO-defined Entities
      • How to: Use HTTPS with a Domain Service
    • Data
      • Compositional Hierarchies
      • Presentation Models
      • Inheritance in Data Models
      • Complex Types
      • Shared Entities
      • Walkthrough: Sharing Entities between Multiple Domain Services
      • How to: Add Metadata Classes
      • How to: Validate Data
      • Managing Data Concurrency
    • Shared Code
      • How to: Share Code through Source Files
      • Walkthrough: Creating a Open Ria Services Class Library
  • Silverlight Clients
    • Client Code Generation
    • DomainContext and Operations
    • DomainDataSource
    • Error Handling on the Client
    • Customizing Generated Code
      • How to: Add Computed Properties on the Client
  • Accessing non-Silverlight Clients
    • ASP.NET Clients
    • Walkthrough: Using the Domain Service in ASP.NET Applications
  • Authentication, Roles, and Profiles
    • How to: Enable Authentication in Open Ria Services
    • How to: Enable Roles in Open Ria Services
    • How to: Enable Profiles in Open Ria Services
    • How to: Create a Custom Authorization Attribute
    • Walkthrough: Using Authentication Service with Silverlight Business Application
    • Walkthrough: Using Authentication Service with Silverlight Navigation Application
  • End-to-EndScenarios
    • Walkthrough: Retrieving and Displaying Data From a Domain Service
    • Walkthrough: Editing Data From a Domain Service
    • Walkthrough: Displaying Data in a Silverlight Business Application
    • Walkthrough: Displaying Related Data in a Silverlight Business Application
Powered by GitBook
On this page

Was this helpful?

  1. Creating Open Ria Services Solutions

Using the Domain Service Wizard

PreviousHow to: Add or Remove a Open Ria Services LinkNextBuilding Secure Applications with Open Ria Services

Last updated 4 years ago

Was this helpful?

[ This document was written for WCF Services Version 1 Service Pack 2 and might not be up to date Please see or for a list of changes since WCF RIA Services ]

The Add New Domain Service Class dialog box is used to add a object that is used to expose data in a server project from a Data Access Layer (DAL), such as Entity framework or LINQ to SQL.

To access the Add New Domain Service Class dialog box, right-click the server project in the Solution Explorer, select Add and New Item to bring up the Add New Item dialog box.

From the Web category of the Installed Templates pane of the dialog box, select the Domain Service Class, click Add, and the Add New Domain Service Class wizard appears.

UI Elements

This section contains descriptions of the elements contained in this dialog box.

  • Expose OData endpoint Check this if you want the services to expose an additional endpoint using the OData Protocol. This adds an OData endpoint to the \ section of the web.config file and marks the parameterless query methods you expose via OData as being the default. This exposes your domain service as an OData feed.

  • Available DataContext/Objectcontext classes Use this to select the DAL, such as Entity Framework or LINQ to SQL. The LINQ to SQL option is available only if you have the Open Ria Services Toolkit installed. You can also select the \ option if you want to customize the DAL access from your domain service class. For details on using this option with POCO-defined entities, see How to: Create a Domain Service that uses POCO-defined Entities.

  • Entities Use this check list to select the entities from the data source that the domain service will make available to the client.

  • Enable editing Check the relevant boxes to indicate which entities selected can be edited. Checking this box will generate CUD (Create, Update, and Delete) methods for the selected entities.

  • Generate associated classes for metadata Check this box if you want to generate a partial class that has all the properties of the selected model listed. The user can then apply Validation/Display attributes to these properties.

See the for the scenario in which this dialog box is used with the AdventureWorksLT2008 database.

Domain service class name Names the instance of the class. This is read-only property and the name cannot be changed here.

Enable client access Check this if you want to expose the to your client. This box is checked by default. Checking this box is what causes Open Ria Services to generate domain context for a domain service and entities it contains on the client.

Walkthrough: Creating a Open Ria Services Solution
DomainService
DomainService
Release Notes
Changelog
DomainService
RIA_AddDomainService
RIA_AddEntity