共用方式為


EntityViewContainer 類別

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

注意:這個 API 現在已經過時。

在設計階段建立以儲存所產生檢視之類型的基底類別。

繼承階層

System.Object
  System.Data.Entity.Core.Mapping.EntityViewContainer

命名空間:  System.Data.Entity.Core.Mapping
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<ObsoleteAttribute("The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.",  _
    True)> _
Public MustInherit Class EntityViewContainer
'用途
Dim instance As EntityViewContainer
[ObsoleteAttribute("The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.", 
    true)]
public abstract class EntityViewContainer
[ObsoleteAttribute(L"The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.", 
    true)]
public ref class EntityViewContainer abstract
[<AbstractClassAttribute>]
[<ObsoleteAttribute("The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.MappingViews.DbMappingViewCacheTypeAttribute.", 
    true)>]
type EntityViewContainer =  class end
public abstract class EntityViewContainer

EntityViewContainer 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 EntityViewContainer 初始化 EntityViewContainer 類別的新執行個體。

靠上

屬性

  名稱 描述
公用屬性 EdmEntityContainerName 取得或設定 EntityContainer 的名稱。
公用屬性 HashOverAllExtentViews 檢視的雜湊值。
公用屬性 HashOverMappingClosure 雜湊值。
公用屬性 StoreEntityContainerName 在儲存結構描述內取得或設定 EntityContainer
公用屬性 ViewCount 取得或設定檢視計數。

靠上

方法

  名稱 描述
公用方法 Equals (繼承自 Object)。
受保護的方法 Finalize (繼承自 Object)。
公用方法 GetHashCode (繼承自 Object)。
公用方法 GetType (繼承自 Object)。
受保護的方法 GetViewAt 傳回位於指定索引位置的索引鍵/值組,其中包含檢視及其索引鍵。
受保護的方法 MemberwiseClone (繼承自 Object)。
公用方法 ToString (繼承自 Object)。

靠上

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

System.Data.Entity.Core.Mapping 命名空間