EntityMappingConfiguration<TEntityType>.Properties<TObject> Method (Expression<Func<TEntityType, TObject>>)
Configures the properties that will be included in this mapping fragment. If this method is not called then all properties that have not yet been included in a mapping fragment will be configured.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] [SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")] public void Properties<TObject>( Expression<Func<TEntityType, TObject>> propertiesExpression )
Parameters
- propertiesExpression
-
Type:
System.Linq.Expressions.Expression<Func<TEntityType, TObject>>
A lambda expression to an anonymous type that contains the properties to be mapped. C#: t => new { t.Id, t.Property1, t.Property2 } VB.Net: Function(t) New With { p.Id, t.Property1, t.Property2 }
Type Parameters
- TObject
An anonymous type including the properties to be mapped.