Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DbFunctionAttribute Class

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Indicates that the given method is a proxy for an EDM function.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
[AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public class DbFunctionAttribute : Attribute

The DbFunctionAttribute type exposes the following members.

Public methodDbFunctionAttribute Creates a new DbFunctionAttribute instance.
Public propertyFunctionName The function name of the EDM function represented by the attributed method.
Public propertyNamespaceName The namespace name of the EDM function represented by the attributed method.
Public propertyTypeId (Inherited from Attribute.)
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Note that this class was called EdmFunctionAttribute in some previous versions of Entity Framework.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.