次の方法で共有


ComplexPropertyBuilder<TComplex>.ComplexProperty メソッド

定義

オーバーロード

ComplexProperty(String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty(Type, String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty(Type, String, String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>)

複合型の複合プロパティを構成するために使用できるオブジェクトを返します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, String)

複合型の複合プロパティを構成するために使用できるオブジェクトを返します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty<TProperty>(String, String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

ComplexProperty(String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty (string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> buildAction);
override this.ComplexProperty : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty (propertyName As String, buildAction As Action(Of ComplexPropertyBuilder)) As ComplexPropertyBuilder(Of TComplex)

パラメーター

propertyName
String

構成するプロパティの名前。

buildAction
Action<ComplexPropertyBuilder>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

このオーバーロードで新しいプロパティを追加する場合、プロパティ名は複合型の CLR プロパティまたはフィールドの名前と一致する必要があります。 このオーバーロードを使用して、新しいシャドウ状態の複合プロパティを追加することはできません。

適用対象

ComplexProperty(Type, String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty (Type propertyType, string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> buildAction);
override this.ComplexProperty : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty (propertyType As Type, propertyName As String, buildAction As Action(Of ComplexPropertyBuilder)) As ComplexPropertyBuilder(Of TComplex)

パラメーター

propertyType
Type

構成するプロパティの型。

propertyName
String

構成するプロパティの名前。

buildAction
Action<ComplexPropertyBuilder>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しい複合プロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty(Type, String, String, Action<ComplexPropertyBuilder>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty (Type propertyType, string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> buildAction);
override this.ComplexProperty : Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty (propertyType As Type, propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexPropertyBuilder)) As ComplexPropertyBuilder(Of TComplex)

パラメーター

propertyType
Type

構成するプロパティの型。

propertyName
String

構成するプロパティの名前。

complexTypeName
String

複合型の名前。

buildAction
Action<ComplexPropertyBuilder>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しい複合プロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>)

複合型の複合プロパティを構成するために使用できるオブジェクトを返します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty> ComplexProperty<TProperty> (System.Linq.Expressions.Expression<Func<TComplex,TProperty>> propertyExpression);
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Complex, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>
Public Overridable Function ComplexProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplex, TProperty))) As ComplexPropertyBuilder(Of TProperty)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyExpression
Expression<Func<TComplex,TProperty>>

構成するプロパティを表すラムダ式 ( blog => blog.Url)。

戻り値

プロパティの構成に使用できるオブジェクト。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty<TProperty> (System.Linq.Expressions.Expression<Func<TComplex,TProperty>> propertyExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty>> buildAction);
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Complex, 'Property>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplex, TProperty)), buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As ComplexPropertyBuilder(Of TComplex)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyExpression
Expression<Func<TComplex,TProperty>>

構成するプロパティを表すラムダ式 ( blog => blog.Url)。

buildAction
Action<ComplexPropertyBuilder<TProperty>>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, String)

複合型の複合プロパティを構成するために使用できるオブジェクトを返します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty> ComplexProperty<TProperty> (System.Linq.Expressions.Expression<Func<TComplex,TProperty>> propertyExpression, string complexTypeName);
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Complex, 'Property>> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>
Public Overridable Function ComplexProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplex, TProperty)), complexTypeName As String) As ComplexPropertyBuilder(Of TProperty)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyExpression
Expression<Func<TComplex,TProperty>>

構成するプロパティを表すラムダ式 ( blog => blog.Url)。

complexTypeName
String

複合型の名前。

戻り値

プロパティの構成に使用できるオブジェクト。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty<TProperty> (string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty>> buildAction);
override this.ComplexProperty : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty(Of TProperty) (propertyName As String, buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As ComplexPropertyBuilder(Of TComplex)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyName
String

構成するプロパティの名前。

buildAction
Action<ComplexPropertyBuilder<TProperty>>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(Expression<Func<TComplex,TProperty>>, String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty<TProperty> (System.Linq.Expressions.Expression<Func<TComplex,TProperty>> propertyExpression, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty>> buildAction);
override this.ComplexProperty : System.Linq.Expressions.Expression<Func<'Complex, 'Property>> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplex, TProperty)), complexTypeName As String, buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As ComplexPropertyBuilder(Of TComplex)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyExpression
Expression<Func<TComplex,TProperty>>

構成するプロパティを表すラムダ式 ( blog => blog.Url)。

complexTypeName
String

複合型の名前。

buildAction
Action<ComplexPropertyBuilder<TProperty>>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象

ComplexProperty<TProperty>(String, String, Action<ComplexPropertyBuilder<TProperty>>)

複合型の複合プロパティを構成します。 指定した名前のプロパティが存在しない場合は、新しいプロパティが追加されます。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> ComplexProperty<TProperty> (string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TProperty>> buildAction);
override this.ComplexProperty : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function ComplexProperty(Of TProperty) (propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As ComplexPropertyBuilder(Of TComplex)

型パラメーター

TProperty

構成するプロパティの型。

パラメーター

propertyName
String

構成するプロパティの名前。

complexTypeName
String

複合型の名前。

buildAction
Action<ComplexPropertyBuilder<TProperty>>

プロパティの構成を実行するアクション。

戻り値

複数の構成呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

新しいプロパティを追加するときに、同じ名前のプロパティが複合クラスに存在する場合は、モデルに追加されます。 複合クラスにプロパティが存在しない場合は、新しいシャドウ状態の複合プロパティが追加されます。 シャドウ状態プロパティは、複合クラスに対応するプロパティを持たないプロパティです。 プロパティの現在の値は、複合クラスのインスタンスに ChangeTracker 格納されるのではなく、 に格納されます。

適用対象