Share via


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
Public method LinqToEntitiesDomainServiceDescriptionProviderAttribute() Initializes a new instance of the LinqToEntitiesDomainServiceDescriptionProviderAttribute class using the ObjectContext type inferred from the domain service the attribute is applied to.
Public method LinqToEntitiesDomainServiceDescriptionProviderAttribute(Type) Initializes a new instance of the LinqToEntitiesDomainServiceDescriptionProviderAttribute class with the specified ObjectContext type.

Top

Properties

  Name Description
Public property DomainServiceDescriptionProviderType Gets the DomainServiceDescriptionProvider type. (Inherited from DomainServiceDescriptionProviderAttribute.)
Public property ObjectContextType Gets the LINQ to Entities ObjectContext type.
Public property TypeId Gets a unique identifier for this attribute. (Inherited from DomainServiceDescriptionProviderAttribute.)

Top

Methods

  Name Description
Public method CreateProvider Creates an instance of the LINQ to Entities description provider. (Overrides DomainServiceDescriptionProviderAttribute.CreateProvider(Type, DomainServiceDescriptionProvider).)
Public method Equals (Inherited from Attribute.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _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