DbEntityEntry.ComplexProperty 方法

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

获取一个对象,此对象表示该实体的复杂属性。

命名空间:  System.Data.Entity.Infrastructure
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Function ComplexProperty ( _
    propertyName As String _
) As DbComplexPropertyEntry
用法
Dim instance As DbEntityEntry 
Dim propertyName As String 
Dim returnValue As DbComplexPropertyEntry 

returnValue = instance.ComplexProperty(propertyName)
public DbComplexPropertyEntry ComplexProperty(
    string propertyName
)
public:
DbComplexPropertyEntry^ ComplexProperty(
    String^ propertyName
)
member ComplexProperty : 
        propertyName:string -> DbComplexPropertyEntry
public function ComplexProperty(
    propertyName : String
) : DbComplexPropertyEntry

参数

返回值

类型:System.Data.Entity.Infrastructure.DbComplexPropertyEntry
表示复杂属性的对象。

请参阅

参考

DbEntityEntry 类

System.Data.Entity.Infrastructure 命名空间