DbEntityEntry<TEntity>.Property Method

 

Gets an object that represents a scalar or complex property of this entity.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodProperty(String)

Gets an object that represents a scalar or complex property of this entity.

System_CAPS_pubmethodProperty<TProperty>(Expression<Func<TEntity, TProperty>>)

Gets an object that represents a scalar or complex property of this entity.

System_CAPS_pubmethodProperty<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.

public DbPropertyEntry Property(
	string propertyName
)

Parameters

propertyName
Type: System.String

The name of the property.

Return Value

Type: System.Data.Entity.Infrastructure.DbPropertyEntry

An 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.

public DbPropertyEntry<TEntity, TProperty> Property<TProperty>(
	string propertyName
)

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.