다음을 통해 공유


EntityTypeBuilder<TEntity>.ComplexProperty 메서드

정의

오버로드

ComplexProperty(String, Action<ComplexPropertyBuilder>)

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

ComplexProperty(Type, String, Action<ComplexPropertyBuilder>)

복합 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

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

복합 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

엔터티 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

엔터티 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

ComplexProperty(String, Action<ComplexPropertyBuilder>)

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

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

매개 변수

propertyName
String

구성할 속성의 이름입니다.

buildAction
Action<ComplexPropertyBuilder>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

이 오버로드를 사용하여 새 속성을 추가할 때 속성 이름은 복합 형식의 CLR 속성 또는 필드 이름과 일치해야 합니다. 이 오버로드는 새 섀도 상태 복합 속성을 추가하는 데 사용할 수 없습니다.

적용 대상

ComplexProperty(Type, String, Action<ComplexPropertyBuilder>)

복합 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> 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.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function ComplexProperty (propertyType As Type, propertyName As String, buildAction As Action(Of ComplexPropertyBuilder)) As EntityTypeBuilder(Of TEntity)

매개 변수

propertyType
Type

구성할 속성의 형식입니다.

propertyName
String

구성할 속성의 이름입니다.

buildAction
Action<ComplexPropertyBuilder>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

새 복합 속성을 추가할 때 이름이 같은 속성이 복합 클래스에 있으면 모델에 추가됩니다. 복합 클래스에 속성이 없으면 새 섀도 상태 복합 속성이 추가됩니다. 섀도 상태 속성은 복합 클래스에 해당 속성이 없는 속성입니다. 속성의 현재 값은 ChangeTracker 복합 클래스의 인스턴스에 저장되지 않고 에 저장됩니다.

적용 대상

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

복합 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> 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.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function ComplexProperty (propertyType As Type, propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexPropertyBuilder)) As EntityTypeBuilder(Of TEntity)

매개 변수

propertyType
Type

구성할 속성의 형식입니다.

propertyName
String

구성할 속성의 이름입니다.

complexTypeName
String

복합 형식의 이름입니다.

buildAction
Action<ComplexPropertyBuilder>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

새 복합 속성을 추가할 때 이름이 같은 속성이 복합 클래스에 있으면 모델에 추가됩니다. 복합 클래스에 속성이 없으면 새 섀도 상태 복합 속성이 추가됩니다. 섀도 상태 속성은 복합 클래스에 해당 속성이 없는 속성입니다. 속성의 현재 값은 ChangeTracker 복합 클래스의 인스턴스에 저장되지 않고 에 저장됩니다.

적용 대상

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> 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.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function ComplexProperty(Of TProperty) (propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As EntityTypeBuilder(Of TEntity)

형식 매개 변수

TProperty

구성할 속성의 형식입니다.

매개 변수

propertyName
String

구성할 속성의 이름입니다.

complexTypeName
String

복합 형식의 이름입니다.

buildAction
Action<ComplexPropertyBuilder<TProperty>>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

새 속성을 추가할 때 이름이 같은 속성이 복합 클래스에 있으면 모델에 추가됩니다. 복합 클래스에 속성이 없으면 새 섀도 상태 복합 속성이 추가됩니다. 섀도 상태 속성은 복합 클래스에 해당 속성이 없는 속성입니다. 속성의 현재 값은 ChangeTracker 복합 클래스의 인스턴스에 저장되지 않고 에 저장됩니다.

적용 대상

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

형식 매개 변수

TProperty

매개 변수

propertyExpression
Expression<Func<TEntity,TProperty>>

구성할 속성( blog => blog.Url)을 나타내는 람다 식입니다.

complexTypeName
String

복합 형식의 이름입니다.

buildAction
Action<ComplexPropertyBuilder<TProperty>>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

적용 대상

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 이름의 속성이 없으면 새 속성이 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> 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.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function ComplexProperty(Of TProperty) (propertyName As String, buildAction As Action(Of ComplexPropertyBuilder(Of TProperty))) As EntityTypeBuilder(Of TEntity)

형식 매개 변수

TProperty

구성할 속성의 형식입니다.

매개 변수

propertyName
String

구성할 속성의 이름입니다.

buildAction
Action<ComplexPropertyBuilder<TProperty>>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

설명

새 속성을 추가할 때 이름이 같은 속성이 복합 클래스에 있으면 모델에 추가됩니다. 복합 클래스에 속성이 없으면 새 섀도 상태 복합 속성이 추가됩니다. 섀도 상태 속성은 복합 클래스에 해당 속성이 없는 속성입니다. 속성의 현재 값은 ChangeTracker 복합 클래스의 인스턴스에 저장되지 않고 에 저장됩니다.

적용 대상

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

엔터티 형식의 복합 속성을 구성합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

형식 매개 변수

TProperty

매개 변수

propertyExpression
Expression<Func<TEntity,TProperty>>

구성할 속성( blog => blog.Url)을 나타내는 람다 식입니다.

buildAction
Action<ComplexPropertyBuilder<TProperty>>

속성의 구성을 수행하는 작업입니다.

반환

여러 구성 호출을 연결할 수 있도록 동일한 작성기가 instance.

적용 대상

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

엔터티 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

형식 매개 변수

TProperty

매개 변수

propertyExpression
Expression<Func<TEntity,TProperty>>

구성할 속성( blog => blog.Url)을 나타내는 람다 식입니다.

반환

복합 속성을 구성하는 데 사용할 수 있는 개체입니다.

적용 대상

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

엔터티 형식의 복합 속성을 구성하는 데 사용할 수 있는 개체를 반환합니다. 지정된 속성이 모델의 일부가 아닌 경우 추가됩니다.

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

형식 매개 변수

TProperty

매개 변수

propertyExpression
Expression<Func<TEntity,TProperty>>

구성할 속성( blog => blog.Url)을 나타내는 람다 식입니다.

complexTypeName
String

복합 형식의 이름입니다.

반환

복합 속성을 구성하는 데 사용할 수 있는 개체입니다.

적용 대상