7 instantiations of MetadataWorkspace
System.Data.Entity (4)
System\Data\Common\CommandTrees\DbCommandTree.cs (1)
61MetadataWorkspace effectiveMetadata = new MetadataWorkspace();
System\Data\EntityClient\EntityConnection.cs (1)
420MetadataWorkspace workspace = new MetadataWorkspace();
System\Data\Mapping\StorageMappingItemCollection.cs (1)
255m_workspace = new MetadataWorkspace();
System\Data\Mapping\ViewGeneration\Utils\ExternalCalls.cs (1)
95MetadataWorkspace workspace = new MetadataWorkspace();
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
354MetadataWorkspace workspace = new MetadataWorkspace(); 1549MetadataWorkspace metadataWorkspace = new MetadataWorkspace();
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
587MetadataWorkspace metadataWorkspace = new MetadataWorkspace(metadataPaths, _assemblies);
161 references to MetadataWorkspace
System.Data.Entity (122)
System\Data\Common\CommandTrees\DbCommandTree.cs (4)
39private readonly MetadataWorkspace _metadata; 47internal DbCommandTree(MetadataWorkspace metadata, DataSpace dataSpace) 61MetadataWorkspace effectiveMetadata = new MetadataWorkspace(); 106internal MetadataWorkspace MetadataWorkspace { get { return _metadata; } }
System\Data\Common\CommandTrees\DbDeleteCommandTree.cs (1)
27internal DbDeleteCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target, DbExpression predicate)
System\Data\Common\CommandTrees\DbFunctionCommandTree.cs (1)
42/*CQT_PUBLIC_API(*/internal/*)*/ DbFunctionCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, EdmFunction edmFunction, TypeUsage resultType, IEnumerable<KeyValuePair<string, TypeUsage>> parameters)
System\Data\Common\CommandTrees\DbInsertCommandTree.cs (1)
33internal DbInsertCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target, ReadOnlyModificationClauses setClauses, DbExpression returning)
System\Data\Common\CommandTrees\DbModificationCommandTree.cs (1)
29internal DbModificationCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target)
System\Data\Common\CommandTrees\DbQueryCommandTree.cs (3)
33private DbQueryCommandTree(MetadataWorkspace metadata, 61/*CQT_PUBLIC_API(*/internal/*)*/ DbQueryCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpression query) 102internal static DbQueryCommandTree FromValidExpression(MetadataWorkspace metadata, DataSpace dataSpace, DbExpression query)
System\Data\Common\CommandTrees\DbUpdateCommandTree.cs (1)
34internal DbUpdateCommandTree(MetadataWorkspace metadata, DataSpace dataSpace, DbExpressionBinding target, DbExpression predicate, ReadOnlyModificationClauses setClauses, DbExpression returning)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (3)
27private readonly MetadataWorkspace _metadata; 30protected DbExpressionRebinder(MetadataWorkspace targetWorkspace) 39internal static DbExpression BindToWorkspace(DbExpression expression, MetadataWorkspace targetWorkspace)
System\Data\Common\CommandTrees\Internal\Validator.cs (1)
29internal DbExpressionValidator(MetadataWorkspace metadata, DataSpace expectedDataSpace)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
51private readonly MetadataWorkspace metadata; 54private ViewSimplifier(MetadataWorkspace mws, EntitySetBase viewTarget)
System\Data\Common\DataRecord.cs (2)
26private readonly MetadataWorkspace _workspace; 33internal MaterializedDataRecord(MetadataWorkspace workspace, TypeUsage edmUsage, object[] values)
System\Data\Common\Internal\Materialization\Shaper.cs (3)
29internal Shaper(DbDataReader reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount) 87public readonly MetadataWorkspace Workspace; 1055internal Shaper(DbDataReader reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, int stateCount, CoordinatorFactory<T> rootCoordinatorFactory, Action checkPermissions, bool readerOwned)
System\Data\Common\Internal\Materialization\ShaperFactory.cs (4)
25internal static ShaperFactory Create(Type elementType, QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer) 33internal abstract ShaperFactory TypedCreate(QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer); 39internal override ShaperFactory TypedCreate(QueryCacheManager cacheManager, ColumnMap columnMap, MetadataWorkspace metadata, SpanIndex spanInfo, MergeOption mergeOption, bool valueLayer) 67internal Shaper<T> Create(DbDataReader reader, ObjectContext context, MetadataWorkspace workspace, MergeOption mergeOption, bool readerOwned)
System\Data\Common\Internal\Materialization\Translator.cs (4)
128private readonly MetadataWorkspace _workspace; 181private Translator(MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, bool valueLayer) 197internal static ShaperFactory<TRequestedType> TranslateColumnMap<TRequestedType>(QueryCacheManager queryCacheManager, ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, bool valueLayer) 560null, new Type[] { typeof(MetadataWorkspace), typeof(TypeUsage), typeof(object[]) },
System\Data\Common\Internal\Materialization\Util.cs (1)
17internal static ObjectTypeMapping GetObjectMapping(EdmType type, MetadataWorkspace workspace)
System\Data\Common\Utils\CommandHelper.cs (1)
166internal static EdmFunction FindFunctionImport(MetadataWorkspace workspace, string containerName, string functionImportName)
System\Data\Common\Utils\MetadataHelper.cs (7)
87string functionName, string defaultContainerName, MetadataWorkspace workspace, 100internal static EdmType GetAndCheckFunctionImportReturnType<TElement>(EdmFunction functionImport, int resultSetIndex, MetadataWorkspace workspace) 115internal static void CheckFunctionImportReturnType<TElement>(EdmType expectedEdmType, MetadataWorkspace workspace) 159internal static bool TryDetermineCSpaceModelType<T>(MetadataWorkspace workspace, out EdmType modelEdmType) 164internal static bool TryDetermineCSpaceModelType(Type type, MetadataWorkspace workspace, out EdmType modelEdmType) 326internal static IEnumerable<EntitySet> GetInfluencingEntitySetsForTable(EntitySet table, MetadataWorkspace workspace) 350internal static IEnumerable<EdmType> GetTypeAndSubtypesOf(EdmType type, MetadataWorkspace workspace, bool includeAbstractTypes)
System\Data\EntityClient\EntityCommand.cs (1)
632MetadataWorkspace workspace = _connection.GetMetadataWorkspace();
System\Data\EntityClient\EntityCommandDefinition.cs (1)
157private TypeUsage DetermineStoreResultType(MetadataWorkspace workspace, FunctionImportMappingNonComposable mapping, int resultSetIndex, out IColumnMapGenerator columnMapGenerator) {
System\Data\EntityClient\EntityConnection.cs (7)
59private MetadataWorkspace _metadataWorkspace; 97public EntityConnection(MetadataWorkspace workspace, DbConnection connection) 389public MetadataWorkspace GetMetadataWorkspace() 407internal MetadataWorkspace GetMetadataWorkspace(bool initializeAllCollections) 420MetadataWorkspace workspace = new MetadataWorkspace(); 944private static EdmItemCollection LoadEdmItemCollection(MetadataWorkspace workspace, MetadataArtifactLoader artifactLoader) 962private static void LoadStoreItemCollections(MetadataWorkspace workspace,
System\Data\EntityKey.cs (4)
373public EntitySet GetEntitySet(MetadataWorkspace metadataWorkspace) 987internal void ValidateEntityKey(MetadataWorkspace workspace, EntitySet entitySet) 1001internal void ValidateEntityKey(MetadataWorkspace workspace, EntitySet entitySet, bool isArgumentException, string argumentName) 1092private static void ValidateTypeOfKeyValue(MetadataWorkspace workspace, EdmMember keyMember, object keyValue, bool isArgumentException, string argumentName)
System\Data\Mapping\FunctionImportMappingNonComposable.cs (1)
172internal TypeUsage GetExpectedTargetResultType(MetadataWorkspace workspace, int resultSetIndex)
System\Data\Mapping\StorageMappingItemCollection.cs (4)
43private MetadataWorkspace m_workspace; 249internal MetadataWorkspace Workspace 696internal GeneratedView GetGeneratedView(EntitySetBase extent, MetadataWorkspace workspace) 883internal bool TryGetGeneratedViewOfType(MetadataWorkspace workspace, EntitySetBase entity, EntityTypeBase type, bool includeSubtypes, out GeneratedView generatedView)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (7)
205internal bool TryGetGeneratedViewOfType(MetadataWorkspace workspace, EntitySetBase entity, EntityTypeBase type, bool includeSubtypes, out GeneratedView generatedView) 262internal GeneratedView GetGeneratedView(EntitySetBase extent, MetadataWorkspace workspace, StorageMappingItemCollection storageMappingItemCollection) 368private void SerializedCollectViewsFromObjectCollection(MetadataWorkspace workspace, Dictionary<EntitySetBase, GeneratedView> extentMappingViews) 406private void SerializedAddGeneratedViewsInEntityViewContainer(MetadataWorkspace workspace, EntityViewContainer entityViewContainer, Dictionary<EntitySetBase, GeneratedView> extentMappingViews) 465private bool VerifyViewsHaveNotChanged(MetadataWorkspace workspace, EntityViewContainer viewContainer) 485private void SerializedAddGeneratedViews(MetadataWorkspace workspace, EntityViewContainer viewContainer, Dictionary<EntitySetBase, GeneratedView> extentMappingViews) 539private void SerializedCollectViewsFromReferencedAssemblies(MetadataWorkspace workspace, Dictionary<EntitySetBase, GeneratedView> extentMappingViews)
System\Data\Mapping\Update\Internal\AssociationSetMetadata.cs (1)
51internal AssociationSetMetadata(Set<EntitySet> affectedTables, AssociationSet associationSet, MetadataWorkspace workspace)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (5)
47private UpdateTranslator(IEntityStateManager stateManager, MetadataWorkspace metadataWorkspace, EntityConnection connection, int? commandTimeout) 96private readonly MetadataWorkspace m_metadataWorkspace; 121internal MetadataWorkspace MetadataWorkspace 377MetadataWorkspace metadataWorkspace = connection.GetMetadataWorkspace(); 1038private static void VerifyExtent(MetadataWorkspace workspace, EntitySetBase extent)
System\Data\Mapping\Update\Internal\ViewLoader.cs (9)
58internal ModificationFunctionMappingTranslator GetFunctionMappingTranslator(EntitySetBase extent, MetadataWorkspace workspace) 70internal Set<EntitySet> GetAffectedTables(EntitySetBase extent, MetadataWorkspace workspace) 79internal AssociationSetMetadata GetAssociationSetMetadata(AssociationSet associationSet, MetadataWorkspace workspace) 91internal bool IsServerGen(EntitySetBase entitySetBase, MetadataWorkspace workspace, EdmMember member) 102internal bool IsNullConditionMember(EntitySetBase entitySetBase, MetadataWorkspace workspace, EdmMember member) 110private T_Value SyncGetValue<T_Key, T_Value>(EntitySetBase entitySetBase, MetadataWorkspace workspace, Dictionary<T_Key, T_Value> dictionary, T_Key key) 118private bool SyncContains<T_Element>(EntitySetBase entitySetBase, MetadataWorkspace workspace, Set<T_Element> set, T_Element element) 128private TResult SyncInitializeEntitySet<TArg, TResult>(EntitySetBase entitySetBase, MetadataWorkspace workspace, Func<TArg, TResult> evaluate, TArg arg) 163private void InitializeEntitySet(EntitySetBase entitySetBase, MetadataWorkspace workspace)
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
771internal void WhereClauseToUserString(StringBuilder builder, MetadataWorkspace workspace)
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (2)
205internal void ToUserString(bool invertOutput, StringBuilder builder, MetadataWorkspace workspace) 310private void InvertOutputStringForTypeConstant(StringBuilder builder, Set<Constant> constants, MetadataWorkspace workspace)
System\Data\Mapping\ViewGeneration\Utils\ExternalCalls.cs (1)
95MetadataWorkspace workspace = new MetadataWorkspace();
System\Data\Metadata\ClrPerspective.cs (1)
29internal ClrPerspective(MetadataWorkspace metadataWorkspace)
System\Data\Metadata\Edm\EntityType.cs (1)
183internal RowType GetKeyRowType(MetadataWorkspace metadataWorkspace)
System\Data\Metadata\MetadataWorkspace.cs (5)
206if (!MetadataWorkspace.SupportedEdmVersions.Contains(edmCollection.EdmVersion)) 1308internal bool IsMetadataWorkspaceCSCompatible(MetadataWorkspace other) 1341internal MetadataWorkspace ShallowCopy() 1343MetadataWorkspace copy = (MetadataWorkspace)MemberwiseClone();
System\Data\Metadata\ModelPerspective.cs (1)
26internal ModelPerspective(MetadataWorkspace metadataWorkspace)
System\Data\Metadata\Perspective.cs (3)
28internal Perspective(MetadataWorkspace metadataWorkspace, 39private MetadataWorkspace m_metadataWorkspace; 193internal MetadataWorkspace MetadataWorkspace
System\Data\Metadata\TargetPerspective.cs (1)
26internal TargetPerspective(MetadataWorkspace metadataWorkspace)
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (2)
22private readonly MetadataWorkspace _workspace; 27internal ComplexTypeMaterializer(MetadataWorkspace workspace)
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
99internal MetadataWorkspace Metadata { get { return _tree.MetadataWorkspace; } }
System\Data\Objects\ObjectContext.cs (6)
141private readonly MetadataWorkspace _workspace; 326public MetadataWorkspace MetadataWorkspace 1598MetadataWorkspace connectionWorkspace = _connection.GetMetadataWorkspace(); 1672private MetadataWorkspace RetrieveMetadataWorkspaceFromConnection() 1679MetadataWorkspace connectionWorkspace = _connection.GetMetadataWorkspace(false /* initializeAllConnections */); 1683MetadataWorkspace workspace = connectionWorkspace.ShallowCopy();
System\Data\Objects\ObjectStateManager.cs (3)
53private readonly MetadataWorkspace _metadataWorkspace; 134public ObjectStateManager(MetadataWorkspace metadataWorkspace) 215public MetadataWorkspace MetadataWorkspace
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
128internal static CollectionColumnMap CreateColumnMapFromReaderAndClrType(DbDataReader reader, Type type, MetadataWorkspace workspace)
System\Data\Query\InternalTrees\Command.cs (3)
34private MetadataWorkspace m_metadataWorkspace; 58internal Command(MetadataWorkspace metadataWorkspace) 93internal MetadataWorkspace MetadataWorkspace { get { return m_metadataWorkspace; } }
System\Data\Query\InternalTrees\RelPropertyHelper.cs (1)
175internal RelPropertyHelper(MetadataWorkspace ws, HashSet<RelProperty> interestingRelProperties)
System\Data\Query\PlanCompiler\PlanCompiler.cs (1)
234internal md.MetadataWorkspace MetadataWorkspace { get { return m_ctree.MetadataWorkspace; } }
System\Data\Query\ResultAssembly\BridgeDataReader.cs (3)
125static internal DbDataReader Create(DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps) { 135private static KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>> CreateShaperInfo(DbDataReader storeDataReader, ColumnMap columnMap, MetadataWorkspace workspace) 150private static IEnumerable<KeyValuePair<Shaper<RecordState>, CoordinatorFactory<RecordState>>> GetNextResultShaperInfo(DbDataReader storeDataReader, MetadataWorkspace workspace, IEnumerable<ColumnMap> nextResultColumnMaps)
System\Data\Spatial\SpatialHelpers.cs (2)
17internal static object GetSpatialValue(MetadataWorkspace workspace, DbDataReader reader, TypeUsage columnType, int columnOrdinal) 31internal static DbSpatialDataReader CreateSpatialDataReader(MetadataWorkspace workspace, DbDataReader reader)
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (1)
61private Sql8ExpressionRewriter(MetadataWorkspace metadata)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
348private MetadataWorkspace metadataWorkspace; 349internal MetadataWorkspace Workspace
System.Data.Entity.Design (8)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (8)
322MetadataWorkspace workspace = GetProviderSchemaMetadataWorkspace(providerServices, providerConnection, targetEntityFrameworkVersion); 328private static MetadataWorkspace GetProviderSchemaMetadataWorkspace(DbProviderServices providerServices, DbConnection providerConnection, Version targetEntityFrameworkVersion) 354MetadataWorkspace workspace = new MetadataWorkspace(); 416private static void ForceViewGeneration(MetadataWorkspace workspace) 1509MetadataWorkspace metadataWorkspace = CreateMetadataWorkspace(entityContainer, session); 1547private MetadataWorkspace CreateMetadataWorkspace(EntityContainer entityContainer, LoadMethodSessionState session) 1549MetadataWorkspace metadataWorkspace = new MetadataWorkspace(); 1598private void FixupViewEntitySetDefiningQuery(EntitySet entitySet, MetadataWorkspace metadataWorkspace)
System.Data.Services (11)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (11)
738MetadataWorkspace workspace = ((EntityConnection)this.ObjectContext.Connection).GetMetadataWorkspace(); 851MetadataWorkspace metadataWorkspace = this.ObjectContext.MetadataWorkspace; 1007MetadataWorkspace workspace = ((ObjectContext)dataSourceInstance).MetadataWorkspace; 1034private static Type GetClrTypeForCSpaceType(MetadataWorkspace workspace, StructuralType edmType) 1058private static IEnumerable<EntitySet> GetEntitySetsForType(MetadataWorkspace workspace, EntityType type) 1085MetadataWorkspace workspace, 1304MetadataWorkspace workspace, 1379MetadataWorkspace workspace, 2087private void GetEpmInfoForResourceType(MetadataWorkspace workspace, ResourceType baseResourceType, ResourceType descendentResourceType) 2483private MetadataWorkspace workspace; 2512internal MetadataManager(MetadataWorkspace workspace, EntityContainer defaultEntityContainer, DataServiceProviderWrapper provider, IDataService service)
System.Web.Entity (19)
System\Data\WebControls\EntityDataSourceColumn.cs (4)
194internal EntityDataSourceReferenceKeyColumn(MetadataWorkspace workspace, EntityDataSourceReferenceGroup group, EdmProperty keyMember, EntityDataSourceColumn dependent) 336protected EntityDataSourceReferenceValueColumn(MetadataWorkspace ocWorkspace, NavigationProperty navigationProperty) 345internal static EntityDataSourceReferenceValueColumn Create(Type clrToType, MetadataWorkspace ocWorkspace, NavigationProperty navigationProperty) 403public EntityDataSourceReferenceValueColumn(MetadataWorkspace ocWorkspace, NavigationProperty navigationProperty)
System\Data\WebControls\EntityDataSourceMemberPath.cs (1)
37internal EntityDataSourceMemberPath(MetadataWorkspace ocWorkspace, EntityDataSourceMemberPath parent, EdmProperty property, bool isLocallyInteresting)
System\Data\WebControls\EntityDataSourceUtil.cs (10)
232internal static Type GetClrType(MetadataWorkspace ocWorkspace, StructuralType edmType) 239internal static Type GetClrType(MetadataWorkspace ocWorkspace, EnumType edmType) 696internal static Type GetMemberClrType(MetadataWorkspace ocWorkspace, EdmMember member) 907internal static ReadOnlyCollection<EntityDataSourceColumn> GetNamedColumns(MetadataWorkspace csWorkspace, MetadataWorkspace ocWorkspace, 939private static ReadOnlyCollection<EdmMember> GetInterestingMembers(MetadataWorkspace csWorkspace, EntitySet entitySet, EntityType entityType) 958MetadataWorkspace ocWorkspace, ReadOnlyCollection<EdmMember> interestingMembers) 977private static Dictionary<EdmProperty, EntityDataSourcePropertyColumn> AddPropertyColumns(List<EntityDataSourceColumn> columns, MetadataWorkspace ocWorkspace, EntityDataSourceMemberPath parent, IEnumerable<EdmProperty> properties, ReadOnlyCollection<EdmMember> interestingMembers) 1005private static void AddReferenceNavigationColumns(List<EntityDataSourceColumn> columns, MetadataWorkspace ocWorkspace, EntitySet entitySet, EntityType entityType) 1020private static void AddReferenceKeyColumns(List<EntityDataSourceColumn> columns, MetadataWorkspace ocWorkspace, EntitySet entitySet, EntityType entityType, Dictionary<EdmProperty, EntityDataSourcePropertyColumn> entityProperties)
System\Data\WebControls\EntityDataSourceView.cs (1)
301MetadataWorkspace workspace = Context.MetadataWorkspace;
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
28MetadataWorkspace workspace = wrappers.Context.MetadataWorkspace;
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (2)
66MetadataWorkspace csWorkspace = ((EntityConnection)context.Connection).GetMetadataWorkspace(); 67MetadataWorkspace ocWorkspace = context.MetadataWorkspace;
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
587MetadataWorkspace metadataWorkspace = new MetadataWorkspace(metadataPaths, _assemblies);