[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Provides a base class for all implementations.
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Thetype exposes the following members.
|AuthorizationContext||Gets or sets the optional template AuthorizationContext to use for IsAuthorized.|
|ChangeSet||Gets the current ChangeSet.|
|Factory||Gets or sets the IDomainServiceFactory used to create new instances.|
|ServiceContext||Gets the active DomainServiceContext for this .|
|ServiceDescription||Gets the DomainServiceDescription for this .|
|ValidationContext||Gets or sets the optional ValidationContext to use for all validation operations invoked by the .|
|AuthorizeChangeSet||Returns a value that indicates the whether the user is authorized to submit the specified ChangeSet.|
|Count(T)||Returns the number of rows in an IQueryable.|
|Dispose()||Releases all resources used by the current instance of the class.|
|Dispose(Boolean)||Releases all resources used by the current instance of the class.|
|Equals||(Inherited from Object.)|
|ExecuteChangeSet||Invokes the DomainOperationEntry for each operation in the ChangeSet.|
|Finalize||(Inherited from Object.)|
|GetHashCode||(Inherited from Object.)|
|GetType||(Inherited from Object.)|
|Initialize||Initializes this .|
|Invoke||Invokes the specified operation.|
|IsAuthorized||Requests authorization for the specified DomainOperationEntry.|
|MemberwiseClone||(Inherited from Object.)|
|OnError||Called whenever an unrecoverable error occurs during the processing of a operation.|
|PersistChangeSet||Finalizes changes after all the operations in the ChangeSet have been invoked.|
|Query||Performs the query operation indicated by the specified QueryDescription.|
|Submit||Performs the operations indicated by the specified ChangeSet by invoking each of the corresponding domain operations.|
|ToString||(Inherited from Object.)|
|ValidateChangeSet||Validates the whole ChangeSet before calling ExecuteChangeSet.|
Domain services are Windows Communication Foundation (WCF) services that encapsulate the business logic of an application. A domain service exposes a set of related operations in the form of a service layer. When you create an instance of a domain service, you specify the data operations that are permitted through the domain service.
The class is the base class for all classes that serve as domain services. The LinqToEntitiesDomainService(TContext) class derives from the class and is used when interacting with LINQ to Entities models.
A domain service class must be marked with the attribute to make the service available to the client project. The attribute is automatically applied to a domain service when you select the Enable client access check box in the Add New Domain Service Class dialog box.
For more information, see Domain Services.
The following example shows a domain service that exposes an operation for registering a new user. The GetUsers method must be included to ensure that the NewUser entity class is generated for the client project.