PropertyModel.Type 属性

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

获取此属性模型的数据类型。

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

语法

声明
<SuppressMessageAttribute("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")> _
Public Overridable ReadOnly Property Type As PrimitiveTypeKind 
    Get
用法
Dim instance As PropertyModel 
Dim value As PrimitiveTypeKind 

value = instance.Type
[SuppressMessageAttribute("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
public virtual PrimitiveTypeKind Type { get; }
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1721:PropertyNamesShouldNotMatchGetMethods")]
public:
virtual property PrimitiveTypeKind Type {
    PrimitiveTypeKind get ();
}
[<SuppressMessageAttribute("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")>]
abstract Type : PrimitiveTypeKind
[<SuppressMessageAttribute("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")>]
override Type : PrimitiveTypeKind
function get Type () : PrimitiveTypeKind

属性值

类型:System.Data.Entity.Core.Metadata.Edm.PrimitiveTypeKind

请参阅

参考

PropertyModel 类

System.Data.Entity.Migrations.Model 命名空间