次の方法で共有


DbModelBuilder.Properties<T> メソッド

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

モデル内の指定した型のすべてのプリミティブ プロパティに適用される簡易規約の構成を開始します。

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

構文

'宣言
<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")> _
Public Function Properties(Of T) As PropertyConventionConfiguration
'使用
Dim instance As DbModelBuilder 
Dim returnValue As PropertyConventionConfiguration 

returnValue = instance.Properties()
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public PropertyConventionConfiguration Properties<T>()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1004:GenericMethodsShouldProvideTypeParameter")]
public:
generic<typename T>
PropertyConventionConfiguration^ Properties()
[<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")>]
member Properties : unit -> PropertyConventionConfiguration
JScript does not support generic types and methods.

型パラメーター

  • T
    規約が適用されるプロパティの型。

戻り値

型 : System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration
規約の構成オブジェクト。

解説

規約は、指定した型の Null 許容と Null 非許容の両方のプロパティに適用されます。

参照

参照

DbModelBuilder クラス

Properties オーバーロード

System.Data.Entity 名前空間