StorageMappingItemCollection.GenerateViews 方法 (String, String, IList<EdmSchemaError>)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
為對應容器的名稱所指定之容器對應建立 (範圍、產生的檢視) 的字典。
命名空間: System.Data.Entity.Core.Mapping
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function GenerateViews ( _
conceptualModelContainerName As String, _
storeModelContainerName As String, _
errors As IList(Of EdmSchemaError) _
) As Dictionary(Of EntitySetBase, DbMappingView)
'用途
Dim instance As StorageMappingItemCollection
Dim conceptualModelContainerName As String
Dim storeModelContainerName As String
Dim errors As IList(Of EdmSchemaError)
Dim returnValue As Dictionary(Of EntitySetBase, DbMappingView)
returnValue = instance.GenerateViews(conceptualModelContainerName, _
storeModelContainerName, errors)
public Dictionary<EntitySetBase, DbMappingView> GenerateViews(
string conceptualModelContainerName,
string storeModelContainerName,
IList<EdmSchemaError> errors
)
public:
Dictionary<EntitySetBase^, DbMappingView^>^ GenerateViews(
String^ conceptualModelContainerName,
String^ storeModelContainerName,
IList<EdmSchemaError^>^ errors
)
member GenerateViews :
conceptualModelContainerName:string *
storeModelContainerName:string *
errors:IList<EdmSchemaError> -> Dictionary<EntitySetBase, DbMappingView>
public function GenerateViews(
conceptualModelContainerName : String,
storeModelContainerName : String,
errors : IList<EdmSchemaError>
) : Dictionary<EntitySetBase, DbMappingView>
參數
- conceptualModelContainerName
類型:System.String
概念模型中的容器名稱。
- storeModelContainerName
類型:System.String
存放區模型中的容器名稱。
- errors
類型:System.Collections.Generic.IList<EdmSchemaError>
累積潛在錯誤的清單。
傳回值
類型:System.Collections.Generic.Dictionary<EntitySetBase, DbMappingView>
指定產生之檢視的 (EntitySetBase、DbMappingView) 的字典。