106 references to EntityContainer
System.Data.Entity (95)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
1919if (null == entitySet.EntityContainer) 1924if(!CheckDataSpace(entitySet.EntityContainer))
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (4)
50if (_metadata.TryGetEntityContainer(entitySet.EntityContainer.Name, entitySet.EntityContainer.DataSpace, out container)) 60throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Copier_EntitySetNotFound(entitySet.EntityContainer.Name, entitySet.Name)); 63throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Copier_EntityContainerNotFound(entitySet.EntityContainer.Name));
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
709Begin("Target", "Name", e.Target.Name, "Container", e.Target.EntityContainer.Name);
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
526_key.Append(e.EntitySet.EntityContainer.Name); 569_key.Append(e.Target.EntityContainer.Name);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
799setNode.Text.Append(e.EntitySet.EntityContainer.Name); 856retInfo.Text.Append(e.Target.EntityContainer.Name);
System\Data\Common\CommandTrees\Internal\Validator.cs (1)
57return ValidateMetadata(entitySet, base.VisitEntitySet, es => es.EntityContainer.DataSpace, this.allowedMetadataSpaces);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
112this.extent.EntityContainer.DataSpace != DataSpace.CSpace) 124targetSet.EntityContainer.BaseEntitySets
System\Data\Common\EntityUtil.cs (2)
1516Debug.Assert(null != entitySet.EntityContainer, "Null entity container in the entity set"); 1520string containerName2 = entitySet.EntityContainer.Name;
System\Data\Common\Internal\Materialization\ColumnMapKeyBuilder.cs (1)
188Append(prefix, entitySet.EntityContainer.Name);
System\Data\Common\Internal\Materialization\Shaper.cs (1)
467foreach (var entitySetBase in entitySet.EntityContainer.BaseEntitySets)
System\Data\Common\Utils\MetadataHelper.cs (6)
328Debug.Assert(table.EntityContainer.GetDataSpace() == DataSpace.SSpace); 332StorageEntityContainerMapping containerMapping = MappingMetadataHelper.GetEntityContainerMap((StorageMappingItemCollection)itemCollection, table.EntityContainer); 595Debug.Assert(entitySet1.EntityContainer == entitySet2.EntityContainer, "EntityContainer must be the same for both the entity sets"); 599foreach (EntitySetBase extent in entitySet1.EntityContainer.BaseEntitySets) 655foreach (EntitySetBase extent in entitySet.EntityContainer.BaseEntitySets)
System\Data\EntityKey.cs (9)
161Debug.Assert(entitySet.EntityContainer != null, "entitySet.EntityContainer is null"); 162Debug.Assert(entitySet.EntityContainer.Name != null, "entitySet.EntityContainer.Name is null"); 166_entityContainerName = entitySet.EntityContainer.Name; 192Debug.Assert(entitySet.EntityContainer != null, "EntitySet.EntityContainer cannot be null."); 195_entityContainerName = entitySet.EntityContainer.Name; 211Debug.Assert(entitySet.EntityContainer != null, "EntitySet.EntityContainer cannot be null."); 215_entityContainerName = entitySet.EntityContainer.Name; 231Debug.Assert(entitySet.EntityContainer != null, "EntitySet.EntityContainer cannot be null."); 235_entityContainerName = entitySet.EntityContainer.Name;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
78Visit(entitySet.EntityContainer); 84Visit(associationSet.EntityContainer);
System\Data\Mapping\StorageMappingItemCollection.cs (2)
478foreach (var storageTypeMapping in MappingMetadataHelper.GetMappingsForEntitySetAndSuperTypes(this, entitySet.EntityContainer, entitySet, entityType)) 500.GetModificationFunctionMappingsForEntitySetAndType(this, entitySet.EntityContainer, entitySet, entityType)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (3)
230if (!TryGenerateQueryViewOfType(entity.EntityContainer, entity, type, includeSubtypes, out generatedView)) 352Dictionary<EntitySetBase, GeneratedView> generatedViews = m_generatedViewsMemoizer.Evaluate(extent.EntityContainer); 357(extent.EntityContainer.DataSpace==DataSpace.SSpace)?"Table":"EntitySet",extent.Name));
System\Data\Mapping\StorageMappingItemLoader.cs (1)
3751m_modelContainer = EntityUtil.CheckArgumentNull<EntitySetBase>(extent, "extent").EntityContainer;
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
320result = StringComparer.Ordinal.Compare(this.m_processor.Table.EntityContainer.Name, other.m_processor.Table.EntityContainer.Name);
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (2)
379result = StringComparer.Ordinal.Compare(thisParent.EntitySet.EntityContainer.Name, otherParent.EntitySet.EntityContainer.Name);
System\Data\Mapping\Update\Internal\RelationshipConstraintValidator.cs (1)
323EntityContainer container = entitySet.EntityContainer;
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
62containers.Add(command.Table.EntityContainer);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
1041EntityContainer actualContainer = extent.EntityContainer;
System\Data\Mapping\Update\Internal\ViewLoader.cs (1)
165StorageEntityContainerMapping mapping = (StorageEntityContainerMapping)m_mappingCollection.GetMap(entitySetBase.EntityContainer);
System\Data\Mapping\ViewGeneration\CqlGeneration\ExtentCqlBlock.cs (1)
65CqlWriter.AppendEscapedQualifiedName(builder, m_extent.EntityContainer.Name, m_extent.Name);
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
208Debug.Assert(m_extent.EntityContainer.DataSpace == DataSpace.CSpace, "Internal Tree should be asked only for query view"); 308builder.AppendFormat("{0}.{1}", m_extent.EntityContainer.Name, m_extent.Name);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
908CqlWriter.AppendEscapedQualifiedName(builder, extent.EntityContainer.Name, extent.Name);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
180if ((cellQuery.Extent.EntityContainer.DataSpace == DataSpace.SSpace)
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (1)
109CqlWriter.AppendEscapedQualifiedName(builder, refScopeEntitySet.EntityContainer.Name, refScopeEntitySet.Name);
System\Data\Mapping\ViewGeneration\Structures\WithStatement.cs (1)
70CqlWriter.AppendEscapedQualifiedName(builder, m_toEndEntitySet.EntityContainer.Name, m_toEndEntitySet.Name);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (1)
235container = cell.CQuery.Extent.EntityContainer;
System\Data\Mapping\ViewValidator.cs (2)
244EntityContainer targetContainer = target.EntityContainer; 245Debug.Assert(null != target.EntityContainer);
System\Data\Metadata\Edm\EntitySetBaseCollection.cs (1)
127if (entitySet.EntityContainer != null)
System\Data\Metadata\MetadataWorkspace.cs (2)
1434Debug.Assert(entitySet.EntityContainer != null); 1437if (entitySet.EntityContainer.DataSpace != DataSpace.CSpace)
System\Data\Metadata\TypeHelpers.cs (2)
677Debug.Assert(entitySet.EntityContainer != null, "entitySet.EntityContainer is null"); 678return GetFullName(entitySet.EntityContainer.Name, entitySet.Name);
System\Data\Objects\DataClasses\RelatedEnd.cs (8)
513sourceBuilder.Append(_relationshipSet.EntityContainer.Name); 644sourceBuilder.Append(targetEntitySet.EntityContainer.Name); 1109throw EntityUtil.EntitySetIsNotValidForRelationship(set.EntityContainer.Name, set.Name, _navigation.To, _relationshipSet.EntityContainer.Name, _relationshipSet.Name); 2344foreach (EntitySetBase set in entitySet.EntityContainer.BaseEntitySets) 2352throw EntityUtil.EntitySetIsNotValidForRelationship(entitySet.EntityContainer.Name, entitySet.Name, _navigation.From, ((AssociationSet)set).EntityContainer.Name, ((AssociationSet)set).Name); 2431foreach (EntitySetBase entitySetBase in entitySet.EntityContainer.BaseEntitySets)
System\Data\Objects\ObjectContext.cs (6)
1725throw EntityUtil.EntityNotInObjectSet_Delete(actualEntitySet.EntityContainer.Name, actualEntitySet.Name, expectedEntitySet.EntityContainer.Name, expectedEntitySet.Name); 1775throw EntityUtil.EntityNotInObjectSet_Detach(actualEntitySet.EntityContainer.Name, actualEntitySet.Name, expectedEntitySet.EntityContainer.Name, expectedEntitySet.Name); 2510esql.AppendFormat("SELECT VALUE X FROM {0}.{1} AS X WHERE ", EntityUtil.QuoteIdentifier(entitySet.EntityContainer.Name), EntityUtil.QuoteIdentifier(entitySet.Name)); 3176throw EntityUtil.InvalidOperation(Strings.ObjectContext_InvalidEntitySetForStoreQuery(entitySet.EntityContainer.Name,
System\Data\Objects\ObjectQuery_EntitySqlExtensions.cs (1)
200EntityUtil.QuoteIdentifier(entitySet.EntityContainer.Name),
System\Data\Objects\ObjectSet.cs (1)
182return string.Format(CultureInfo.InvariantCulture, "{0}.{1}", _entitySet.EntityContainer.Name, _entitySet.Name);
System\Data\Objects\ObjectStateManager.cs (2)
1471entitySetForType.EntityContainer.Name == entitySetForKey.EntityContainer.Name,
System\Data\Objects\ObjectStateManagerMetadata.cs (3)
30Debug.Assert(null != set.EntityContainer, "null EntityContainer"); 31Debug.Assert(null != set.EntityContainer.Name, "null EntityContainer.Name"); 47obj.EntitySet.EntityContainer.Name.GetHashCode());
System\Data\Query\PlanCompiler\ConstraintManager.cs (2)
216LoadRelationships(table1.EntityContainer); 217LoadRelationships(table2.EntityContainer);
System\Data\Query\PlanCompiler\PreProcessor.cs (6)
216if (!m_referencedEntityContainers.Contains(entitySet.EntityContainer)) 218m_referencedEntityContainers.Add(entitySet.EntityContainer); 310PlanCompiler.Assert(entitySet.EntityContainer.DataSpace == DataSpace.CSpace, "Store entity sets cannot have Query Mapping Views and should not be used with ExpandView"); 374PlanCompiler.Assert(definingQuery != null, Strings.ADP_NoQueryMappingView(entitySet.EntityContainer.Name, entitySet.Name)); 1550foreach (EntitySetBase es in entitySet.EntityContainer.BaseEntitySets) 2119if (scanTableOp.Table.TableMetadata.Extent.EntityContainer.DataSpace == DataSpace.SSpace)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1282builder.Append(SqlGenerator.QuoteIdentifier(entitySetBase.EntityContainer.Name));
System\Data\SqlClient\SqlProviderUtilities.cs (1)
186return entitySet.Schema ?? entitySet.EntityContainer.Name;
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
645return entitySet.EntityContainer.Name + EntityViewGenerationConstants.QualificationCharacter + entitySet.Name;
System.Data.Services (6)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (6)
127foreach (AssociationSet associationSet in sourceEntitySet.EntityContainer.BaseEntitySets.OfType<AssociationSet>()) 143string targetEntitySetName = GetEntitySetName(targetEntitySet.Name, targetEntitySet.EntityContainer.Name, this.ObjectContext.DefaultContainerName == targetEntitySet.EntityContainer.Name); 883string entitySetName = GetEntitySetName(entitySet.Name, entitySet.EntityContainer.Name, defaultEntityContainer); 2380entry.EntitySet.EntityContainer.Name, 2381entry.EntitySet.EntityContainer.Name == this.ObjectContext.DefaultContainerName);
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFTableProvider.cs (1)
54return QuoteEntitySqlIdentifier(entitySet.EntityContainer.Name) + "." + QuoteEntitySqlIdentifier(entitySet.Name);
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (3)
756foreach (AssociationSet associationSet in entitySet.EntityContainer.BaseEntitySets.OfType<AssociationSet>()) 873return entitySet.EntityContainer.Name + "." + entitySet.Name; 893return QuoteEntitySqlIdentifier(set.EntityContainer.Name) + "." + QuoteEntitySqlIdentifier(set.Name);