StoreItemCollection.GetPrimitiveTypes 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
返回一个由 PrimitiveType 对象构成的集合。
命名空间: System.Data.Entity.Core.Metadata.Edm
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Overridable Function GetPrimitiveTypes As ReadOnlyCollection(Of PrimitiveType)
用法
Dim instance As StoreItemCollection
Dim returnValue As ReadOnlyCollection(Of PrimitiveType)
returnValue = instance.GetPrimitiveTypes()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public virtual ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
virtual ReadOnlyCollection<PrimitiveType^>^ GetPrimitiveTypes()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
abstract GetPrimitiveTypes : unit -> ReadOnlyCollection<PrimitiveType>
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
override GetPrimitiveTypes : unit -> ReadOnlyCollection<PrimitiveType>
public function GetPrimitiveTypes() : ReadOnlyCollection<PrimitiveType>
返回值
类型:System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>
一个 ReadOnlyCollection<T> 对象,表示 PrimitiveType 对象的集合。