DbEntityEntry<TEntity>.Property 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Property(String) |
获取一个对象,此对象表示该实体的标量属性或复杂属性。 |
Property<TProperty>(Expression<Func<TEntity,TProperty>>) |
获取一个对象,此对象表示该实体的标量属性或复杂属性。 |
Property<TProperty>(String) |
获取一个对象,此对象表示该实体的标量属性或复杂属性。 |
Property(String)
获取一个对象,此对象表示该实体的标量属性或复杂属性。
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
参数
- propertyName
- String
属性的名称。
返回
表示属性的对象。
适用于
Property<TProperty>(Expression<Func<TEntity,TProperty>>)
获取一个对象,此对象表示该实体的标量属性或复杂属性。
[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)
类型参数
- TProperty
属性的类型。
参数
- property
- Expression<Func<TEntity,TProperty>>
表示 属性的表达式。
返回
表示属性的对象。
- 属性
适用于
Property<TProperty>(String)
获取一个对象,此对象表示该实体的标量属性或复杂属性。
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)
类型参数
- TProperty
属性的类型。
参数
- propertyName
- String
属性的名称。
返回
表示属性的对象。