ModelConfigurationBuilder.Properties メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Properties(Type) |
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。 |
Properties(Type, Action<PropertiesConfigurationBuilder>) |
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。 |
Properties<TProperty>(Action<PropertiesConfigurationBuilder<TProperty>>) |
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。 |
Properties<TProperty>() |
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。 |
Properties(Type)
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder Properties (Type propertyType);
abstract member Properties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
override this.Properties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder
Public Overridable Function Properties (propertyType As Type) As PropertiesConfigurationBuilder
パラメーター
- propertyType
- Type
構成するプロパティの種類。
戻り値
プロパティの構成に使用できるオブジェクト。
注釈
これは、インターフェイスまたはバインドされていないジェネリック型で呼び出して、実装および構築された型のすべてのプロパティに構成を適用することもできます。
詳細と例については、「 EF Core での規則前モデルの構築 」を参照してください。
適用対象
Properties(Type, Action<PropertiesConfigurationBuilder>)
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder Properties (Type propertyType, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> buildAction);
abstract member Properties : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.Properties : Type * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function Properties (propertyType As Type, buildAction As Action(Of PropertiesConfigurationBuilder)) As ModelConfigurationBuilder
パラメーター
- propertyType
- Type
構成するプロパティの種類。
- buildAction
- Action<PropertiesConfigurationBuilder>
プロパティの構成を実行するアクション。
戻り値
追加の構成呼び出しをチェーンできるように、同じ ModelConfigurationBuilder インスタンス。
注釈
これは、インターフェイスまたはバインドされていないジェネリック型で呼び出して、実装および構築された型のすべてのプロパティに構成を適用することもできます。
詳細と例については、「 EF Core での規則前モデルの構築 」を参照してください。
適用対象
Properties<TProperty>(Action<PropertiesConfigurationBuilder<TProperty>>)
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。
public virtual Microsoft.EntityFrameworkCore.ModelConfigurationBuilder Properties<TProperty> (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty>> buildAction);
abstract member Properties : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
override this.Properties : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>> -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Overridable Function Properties(Of TProperty) (buildAction As Action(Of PropertiesConfigurationBuilder(Of TProperty))) As ModelConfigurationBuilder
型パラメーター
- TProperty
構成するプロパティの種類。
パラメーター
- buildAction
- Action<PropertiesConfigurationBuilder<TProperty>>
プロパティの構成を実行するアクション。
戻り値
追加の構成呼び出しをチェーンできるように、同じ ModelConfigurationBuilder インスタンス。
注釈
これはインターフェイスで呼び出して、実装する型のすべてのプロパティに構成を適用することもできます。
詳細と例については、「 EF Core での規則前モデルの構築 」を参照してください。
適用対象
Properties<TProperty>()
指定された型と派生型を、エンティティ型のプロパティに対応するようにマークします。
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<TProperty> Properties<TProperty> ();
abstract member Properties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
override this.Properties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertiesConfigurationBuilder<'Property>
Public Overridable Function Properties(Of TProperty) () As PropertiesConfigurationBuilder(Of TProperty)
型パラメーター
- TProperty
構成するプロパティの種類。
戻り値
プロパティの構成に使用できるオブジェクト。
注釈
これはインターフェイスで呼び出して、実装する型のすべてのプロパティに構成を適用することもできます。
詳細と例については、「 EF Core での規則前モデルの構築 」を参照してください。
適用対象
Entity Framework