Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Return to top

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.

Return to top

DbEntityEntry<TEntity>::Property<TProperty> Method (Expression<Func<TEntity, TProperty>^>^)

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

public:
generic<typename TProperty>
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", 
	MessageId = "0#", Justification = "Rule predates more fluent naming conventions.")]
DbPropertyEntry<TEntity, TProperty>^ Property(
	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.

Return to top

DbEntityEntry<TEntity>::Property<TProperty> Method (String^)

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

public:
generic<typename TProperty>
DbPropertyEntry<TEntity, TProperty>^ Property(
	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.

Return to top
Show: