EntityTypeBuilder<TEntity>.OwnsOne 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
OwnsOne(String, String, Action<OwnedNavigationBuilder>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne (string ownedTypeName, string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> buildAction);
override this.OwnsOne : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function OwnsOne (ownedTypeName As String, navigationName As String, buildAction As Action(Of OwnedNavigationBuilder)) As EntityTypeBuilder(Of TEntity)
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<OwnedNavigationBuilder>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne(Type, String, Action<OwnedNavigationBuilder>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne (Type ownedType, string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> buildAction);
override this.OwnsOne : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function OwnsOne (ownedType As Type, navigationName As String, buildAction As Action(Of OwnedNavigationBuilder)) As EntityTypeBuilder(Of TEntity)
매개 변수
- ownedType
- Type
이 관계가 대상으로 하는 엔터티 형식입니다.
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<OwnedNavigationBuilder>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne(String, Type, String, Action<OwnedNavigationBuilder>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne (string ownedTypeName, Type ownedType, string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> buildAction);
override this.OwnsOne : string * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function OwnsOne (ownedTypeName As String, ownedType As Type, navigationName As String, buildAction As Action(Of OwnedNavigationBuilder)) As EntityTypeBuilder(Of TEntity)
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- ownedType
- Type
이 관계가 대상으로 하는 엔터티 형식의 CLR 형식입니다.
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<OwnedNavigationBuilder>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, String, Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (ownedTypeName As String, navigationName As String, buildAction As Action(Of OwnedNavigationBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, Expression<Func<TEntity,TRelatedEntity>>, Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity?>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : string * System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (ownedTypeName As String, navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity)), buildAction As Action(Of OwnedNavigationBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- navigationExpression
- Expression<Func<TEntity,TRelatedEntity>>
관계(customer => customer.Address
)를 나타내는 이 엔터티 형식의 참조 탐색 속성을 나타내는 람다 식입니다.
- buildAction
- Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, String)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, string navigationName) where TRelatedEntity : class;
override this.OwnsOne : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (ownedTypeName As String, navigationName As String) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
반환
소유 형식 및 관계를 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, Expression<Func<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (string ownedTypeName, System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity?>> navigationExpression) where TRelatedEntity : class;
override this.OwnsOne : string * System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (ownedTypeName As String, navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity))) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- ownedTypeName
- String
이 관계가 대상으로 하는 엔터티 형식의 이름입니다.
- navigationExpression
- Expression<Func<TEntity,TRelatedEntity>>
관계(customer => customer.Address
)를 나타내는 이 엔터티 형식의 참조 탐색 속성을 나타내는 람다 식입니다.
반환
소유 형식 및 관계를 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, Action<ReferenceOwnershipBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationName As String, buildAction As Action(Of ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<ReferenceOwnershipBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
적용 대상
OwnsOne<TRelatedEntity>(Expression<Func<TEntity,TRelatedEntity>>, Action<ReferenceOwnershipBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity)), buildAction As Action(Of ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationExpression
- Expression<Func<TEntity,TRelatedEntity>>
관계(customer => customer.Address
)를 나타내는 이 엔터티 형식의 참조 탐색 속성을 나타내는 람다 식입니다.
- buildAction
- Action<ReferenceOwnershipBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
적용 대상
OwnsOne<TRelatedEntity>(Expression<Func<TEntity,TRelatedEntity>>, Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity?>> navigationExpression, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity)), buildAction As Action(Of OwnedNavigationBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationExpression
- Expression<Func<TEntity,TRelatedEntity>>
관계(customer => customer.Address
)를 나타내는 이 엔터티 형식의 참조 탐색 속성을 나타내는 람다 식입니다.
- buildAction
- Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (string navigationName) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (string navigationName) where TRelatedEntity : class;
override this.OwnsOne : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
override this.OwnsOne : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationName As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationName As String) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
반환
소유 형식 및 관계를 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(Expression<Func<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity>> navigationExpression) where TRelatedEntity : class;
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity> OwnsOne<TRelatedEntity> (System.Linq.Expressions.Expression<Func<TEntity,TRelatedEntity?>> navigationExpression) where TRelatedEntity : class;
override this.OwnsOne : System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
override this.OwnsOne : System.Linq.Expressions.Expression<Func<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity))) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationExpression As Expression(Of Func(Of TEntity, TRelatedEntity))) As OwnedNavigationBuilder(Of TEntity, TRelatedEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationExpression
- Expression<Func<TEntity,TRelatedEntity>>
관계(customer => customer.Address
)를 나타내는 이 엔터티 형식의 참조 탐색 속성을 나타내는 람다 식입니다.
반환
소유 형식 및 관계를 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
OwnsOne<TRelatedEntity>(String, Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>)
대상 엔터티가 이 엔터티의 소유(또는 일부)인 관계를 구성합니다.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> OwnsOne<TRelatedEntity> (string navigationName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TEntity,TRelatedEntity>> buildAction) where TRelatedEntity : class;
override this.OwnsOne : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'Entity, 'RelatedEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'RelatedEntity : null)
Public Overridable Function OwnsOne(Of TRelatedEntity As Class) (navigationName As String, buildAction As Action(Of OwnedNavigationBuilder(Of TEntity, TRelatedEntity))) As EntityTypeBuilder(Of TEntity)
형식 매개 변수
- TRelatedEntity
이 관계가 대상으로 하는 엔터티 형식입니다.
매개 변수
- navigationName
- String
관계를 나타내는 이 엔터티 형식의 참조 탐색 속성 이름입니다.
- buildAction
- Action<OwnedNavigationBuilder<TEntity,TRelatedEntity>>
소유 형식 및 관계의 구성을 수행하는 작업입니다.
반환
엔터티 형식을 구성하는 데 사용할 수 있는 개체입니다.
설명
각 소유권 관계에 대한 대상 엔터티 형식은 탐색이 동일한 형식인 경우에도 다른 엔터티 형식으로 처리됩니다. 대상 엔터티 형식의 구성은 다른 소유권 관계의 대상 엔터티 형식에 적용되지 않습니다.
소유 엔터티에 대한 대부분의 작업은 해당 탐색을 사용하여 소유자 엔터티를 통해 액세스해야 합니다.
이 메서드를 호출한 후 에 대한 호출을 WithOwner(String) 연결하여 관계를 완전히 구성해야 합니다.
적용 대상
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기