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