Share via


DbEntityEntry<TEntity>.Property Method

Definition

Overloads

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.

Property(String)

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

public System.Data.Entity.Infrastructure.DbPropertyEntry Property (string propertyName);
member this.Property : string -> System.Data.Entity.Infrastructure.DbPropertyEntry
Public Function Property (propertyName As String) As DbPropertyEntry

Parameters

propertyName
String

The name of the property.

Returns

An object representing the property.

Applies to

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

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TProperty> Property<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> property);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TProperty> Property<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> property);
member this.Property : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Function Property(Of TProperty) (property As Expression(Of Func(Of TEntity, TProperty))) As DbPropertyEntry(Of TEntity, TProperty)

Type Parameters

TProperty

The type of the property.

Parameters

property
Expression<Func<TEntity,TProperty>>

An expression representing the property.

Returns

An object representing the property.

Attributes

Applies to

Property<TProperty>(String)

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

public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TProperty> Property<TProperty> (string propertyName);
member this.Property : string -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Function Property(Of TProperty) (propertyName As String) As DbPropertyEntry(Of TEntity, TProperty)

Type Parameters

TProperty

The type of the property.

Parameters

propertyName
String

The name of the property.

Returns

An object representing the property.

Applies to