Sdílet prostřednictvím


EntityMappingConfiguration<TEntityType>.Properties<TObject> Metoda

Definice

Konfiguruje vlastnosti, které budou zahrnuty do tohoto fragmentu mapování. Pokud tato metoda není volána, budou nakonfigurovány všechny vlastnosti, které ještě nebyly zahrnuty do fragmentu mapování.

[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)))

Parametry typu

TObject

Anonymní typ včetně vlastností, které se mají mapovat.

Parametry

propertiesExpression
Expression<Func<TEntityType,TObject>>

Výraz lambda na anonymní typ, který obsahuje vlastnosti, které se mají mapovat. C#: t => new { t.Id, t.Property1, t.Property2 } VB.Net: Function(t) New With { p.Id, t.Property1, t.Property2 }

Atributy

Platí pro