DbComplexPropertyEntry<TEntity,TComplexProperty>.Property 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Property(String) |
获取表示此属性的嵌套属性的对象。 此方法可用于标量属性和/或复杂属性。 |
Property<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>) |
获取表示此属性的嵌套属性的对象。 此方法可用于标量属性和/或复杂属性。 |
Property<TNestedProperty>(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<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>)
获取表示此属性的嵌套属性的对象。 此方法可用于标量属性和/或复杂属性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (System.Linq.Expressions.Expression<Func<TComplexProperty,TNestedProperty>> property);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (System.Linq.Expressions.Expression<Func<TComplexProperty,TNestedProperty>> property);
member this.Property : System.Linq.Expressions.Expression<Func<'ComplexProperty, 'NestedProperty>> -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'NestedProperty (requires 'Entity : null)>
Public Function Property(Of TNestedProperty) (property As Expression(Of Func(Of TComplexProperty, TNestedProperty))) As DbPropertyEntry(Of TEntity, TNestedProperty)
类型参数
- TNestedProperty
嵌套属性的类型。
参数
- property
- Expression<Func<TComplexProperty,TNestedProperty>>
表示嵌套属性的表达式。
返回
DbPropertyEntry<TEntity,TNestedProperty>
表示嵌套属性的对象。
- 属性
适用于
Property<TNestedProperty>(String)
获取表示此属性的嵌套属性的对象。 此方法可用于标量属性和/或复杂属性。
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (string propertyName);
member this.Property : string -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'NestedProperty (requires 'Entity : null)>
Public Function Property(Of TNestedProperty) (propertyName As String) As DbPropertyEntry(Of TEntity, TNestedProperty)
类型参数
- TNestedProperty
嵌套属性的类型。
参数
- propertyName
- String
嵌套属性的名称。
返回
DbPropertyEntry<TEntity,TNestedProperty>
表示嵌套属性的对象。