次の方法で共有


DbFunctionAttribute クラス

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定したメソッドが EDM の関数のプロキシであることを示します。

継承階層

System.Object
  System.Attribute
    System.Data.Entity.DbFunctionAttribute
      System.Data.Entity.Core.Objects.DataClasses.EdmFunctionAttribute

名前空間:  System.Data.Entity
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
<SuppressMessageAttribute("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")> _
<AttributeUsageAttribute(AttributeTargets.Method, Inherited := False, AllowMultiple := False)> _
Public Class DbFunctionAttribute _
    Inherits Attribute
'使用
Dim instance As DbFunctionAttribute
[SuppressMessageAttribute("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
[AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public class DbFunctionAttribute : Attribute
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1813:AvoidUnsealedAttributes")]
[AttributeUsageAttribute(AttributeTargets::Method, Inherited = false, AllowMultiple = false)]
public ref class DbFunctionAttribute : public Attribute
[<SuppressMessageAttribute("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")>]
[<AttributeUsageAttribute(AttributeTargets.Method, Inherited = false, AllowMultiple = false)>]
type DbFunctionAttribute =  
    class 
        inherit Attribute 
    end
public class DbFunctionAttribute extends Attribute

DbFunctionAttribute 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
パブリック メソッド DbFunctionAttribute DbFunctionAttribute クラスの新しいインスタンスを初期化します。

上揃え

プロパティ

  名前 説明
パブリック プロパティ FunctionName マップ先関数の名前。
パブリック プロパティ NamespaceName マップ先関数の名前空間。
パブリック プロパティ TypeId (Attribute から継承されます。)

上揃え

メソッド

  名前 説明
パブリック メソッド Equals (Attribute から継承されます。)
プロテクト メソッド Finalize (Object から継承されます。)
パブリック メソッド GetHashCode (Attribute から継承されます。)
パブリック メソッド GetType (Object から継承されます。)
パブリック メソッド IsDefaultAttribute (Attribute から継承されます。)
パブリック メソッド Match (Attribute から継承されます。)
プロテクト メソッド MemberwiseClone (Object から継承されます。)
パブリック メソッド ToString (Object から継承されます。)

上揃え

明示的なインターフェイスの実装  

  名前 説明
明示的なインターフェイス実装プライベート メソッド _Attribute.GetIDsOfNames (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfo (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.GetTypeInfoCount (Attribute から継承されます。)
明示的なインターフェイス実装プライベート メソッド _Attribute.Invoke (Attribute から継承されます。)

上揃え

解説

このクラスは、Entity Framework の以前の一部のバージョンでは、EdmFunctionAttribute と呼ばれていたことに注意してください。

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

参照

System.Data.Entity 名前空間