LinqToEntitiesDomainServiceDescriptionProviderAttribute Class
[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.]
Specifies a domain service that exposes LINQ to Entities mapped types.
Inheritance Hierarchy
System.Object
System.Attribute
System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProviderAttribute
System.ServiceModel.DomainServices.EntityFramework.LinqToEntitiesDomainServiceDescriptionProviderAttribute
Namespace: System.ServiceModel.DomainServices.EntityFramework
Assembly: System.ServiceModel.DomainServices.EntityFramework (in System.ServiceModel.DomainServices.EntityFramework.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := False)> _
Public NotInheritable Class LinqToEntitiesDomainServiceDescriptionProviderAttribute _
Inherits DomainServiceDescriptionProviderAttribute
'Usage
Dim instance As LinqToEntitiesDomainServiceDescriptionProviderAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class LinqToEntitiesDomainServiceDescriptionProviderAttribute : DomainServiceDescriptionProviderAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = false)]
public ref class LinqToEntitiesDomainServiceDescriptionProviderAttribute sealed : public DomainServiceDescriptionProviderAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)>]
type LinqToEntitiesDomainServiceDescriptionProviderAttribute =
class
inherit DomainServiceDescriptionProviderAttribute
end
public final class LinqToEntitiesDomainServiceDescriptionProviderAttribute extends DomainServiceDescriptionProviderAttribute
The LinqToEntitiesDomainServiceDescriptionProviderAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LinqToEntitiesDomainServiceDescriptionProviderAttribute() | Initializes a new instance of the LinqToEntitiesDomainServiceDescriptionProviderAttribute class using the ObjectContext type inferred from the domain service the attribute is applied to. | |
LinqToEntitiesDomainServiceDescriptionProviderAttribute(Type) | Initializes a new instance of the LinqToEntitiesDomainServiceDescriptionProviderAttribute class with the specified ObjectContext type. |
Top
Properties
Name | Description | |
---|---|---|
DomainServiceDescriptionProviderType | Gets the DomainServiceDescriptionProvider type. (Inherited from DomainServiceDescriptionProviderAttribute.) | |
ObjectContextType | Gets the LINQ to Entities ObjectContext type. | |
TypeId | Gets a unique identifier for this attribute. (Inherited from DomainServiceDescriptionProviderAttribute.) |
Top
Methods
Name | Description | |
---|---|---|
CreateProvider | Creates an instance of the LINQ to Entities description provider. (Overrides DomainServiceDescriptionProviderAttribute.CreateProvider(Type, DomainServiceDescriptionProvider).) | |
Equals | (Inherited from Attribute.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Attribute.) | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames | (Inherited from Attribute.) | |
_Attribute.GetTypeInfo | (Inherited from Attribute.) | |
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) | |
_Attribute.Invoke | (Inherited from Attribute.) |
Top
Remarks
You apply the LinqToEntitiesDomainServiceDescriptionProviderAttribute attribute to a domain service to specify that the domain service exposes LINQ to Entities mapped types. Typically, you do not have to manually apply this attribute because it is already applied to the LinqToEntitiesDomainService<TContext> class. The LinqToEntitiesDomainService<TContext> class is the base class for domain service classes that you create through the Add New Domain Service Class wizard when the domain service exposes LINQ to Entities types. You need to manually apply this attribute if you want to expose LINQ to Entities types, but you do not want to use a domain service class that derives from the LinqToEntitiesDomainService<TContext> class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
System.ServiceModel.DomainServices.EntityFramework Namespace