DbEntityEntry<TEntity>.Property Method
Gets an object that represents a scalar or complex property of this entity.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Property(String) | Gets an object that represents a scalar or complex property of this entity. |
![]() | Property<TProperty>(Expression<Func<TEntity, TProperty>>) | Gets an object that represents a scalar or complex property of this entity. |
![]() | Property<TProperty>(String) | Gets an object that represents a scalar or complex property of this entity. |
DbEntityEntry<TEntity>.Property Method (String)
Gets an object that represents a scalar or complex property of this entity.
Parameters
- propertyName
-
Type:
System.String
The name of the property.
Return Value
Type: System.Data.Entity.Infrastructure.DbPropertyEntryAn object representing the property.
DbEntityEntry<TEntity>.Property<TProperty> Method (Expression<Func<TEntity, TProperty>>)
Gets an object that represents a scalar or complex property of this entity.
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")] [SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#", Justification = "Rule predates more fluent naming conventions.")] public DbPropertyEntry<TEntity, TProperty> Property<TProperty>( Expression<Func<TEntity, TProperty>> property )
Parameters
- property
-
Type:
System.Linq.Expressions.Expression<Func<TEntity, TProperty>>
An expression representing the property.
Return Value
Type: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>An object representing the property.
Type Parameters
- TProperty
The type of the property.
DbEntityEntry<TEntity>.Property<TProperty> Method (String)
Gets an object that represents a scalar or complex property of this entity.
Parameters
- propertyName
-
Type:
System.String
The name of the property.
Return Value
Type: System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TProperty>An object representing the property.
Type Parameters
- TProperty
The type of the property.