다음을 통해 공유


EntityMappingConfiguration<TEntityType>.Properties<TObject> 메서드

정의

이 매핑 조각에 포함될 속성을 구성합니다. 이 메서드가 호출되지 않으면 매핑 조각에 아직 포함되지 않은 모든 속성이 구성됩니다.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public void Properties<TObject> (System.Linq.Expressions.Expression<Func<TEntityType,TObject>> propertiesExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public void Properties<TObject> (System.Linq.Expressions.Expression<Func<TEntityType,TObject>> propertiesExpression);
member this.Properties : System.Linq.Expressions.Expression<Func<'EntityType, 'Object>> -> unit
Public Sub Properties(Of TObject) (propertiesExpression As Expression(Of Func(Of TEntityType, TObject)))

형식 매개 변수

TObject

매핑할 속성을 포함하는 익명 형식입니다.

매개 변수

propertiesExpression
Expression<Func<TEntityType,TObject>>

매핑할 속성을 포함하는 익명 형식에 대한 람다 식입니다. C#: t => new { t.Id, t.Property1, t.Property2 } VB.Net: Function(t) New with { p.Id, t.Property1, t.Property2 }

특성

적용 대상