70 references to Set
System.Data.Entity (70)
System\Data\Common\Utils\MetadataHelper.cs (1)
343
.Select(m => m.
Set
)
System\Data\Mapping\StorageAssociationSetMapping.cs (1)
87
sb.Append(this.
Set
.Name);
System\Data\Mapping\StorageEntityContainerMapping.cs (4)
294
associationSetMappings = associationSetMappings.Where(associationSetMap => ((associationSetMap.
Set
as AssociationSet).AssociationSetEnds.Any(associationSetEnd => associationSetEnd.EntitySet == edmEntitySet)));
321
if (!this.m_entitySetMappings.ContainsKey(setMapping.
Set
.Name))
322
this.m_entitySetMappings.Add(setMapping.
Set
.Name, setMapping);
331
this.m_associationSetMappings.Add(setMapping.
Set
.Name, setMapping);
System\Data\Mapping\StorageEntitySetMapping.cs (3)
96
sb.Append(this.
Set
.Name);
144
Debug.Assert(modificationFunctionMapping.EntityType.Equals(this.
Set
.ElementType) ||
145
Helper.IsSubtypeOf(modificationFunctionMapping.EntityType, this.
Set
.ElementType),
System\Data\Mapping\StorageMappingItemCollection.cs (4)
797
if (!userDefinedQueryViewsDict.TryGetValue(setMapping.
Set
, out generatedView))
801
setMapping.
Set
.ElementType,
810
userDefinedQueryViewsDict.Add(setMapping.
Set
, generatedView);
816
Debug.Assert(key.First.Equals(setMapping.
Set
));
System\Data\Mapping\StorageMappingItemLoader.cs (37)
517
entitySetMapping.
Set
.Name,
579
IncrementCount(mappingCounts, associationSetMapping.
Set
);
663
if (setMappingPerTable.ListForKey(table).Any(s => s.HasModificationFunctionMapping || implicitMappedAssociationSets.Any(aset=> aset == s.
Set
)) &&
664
setMappingPerTable.ListForKey(table).Any(s => !s.HasModificationFunctionMapping && !implicitMappedAssociationSets.Any(aset => aset == s.
Set
)))
668
.Where(s => !s.HasModificationFunctionMapping).Select(s=>s.
Set
.Name)),
762
setsWithQueryViews.Add(setMapping.
Set
);
825
entitySet = (EntitySet)setMapping.
Set
;
900
Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.
Set
.ElementType, EdmItemCollection, false /*includeAbstractTypes*/));
1040
EntityType rootEntityType = (EntityType)entitySetMapping.
Set
.ElementType;
1042
e => Strings.Mapping_InvalidContent_Entity_Type_For_Entity_Set(e.FullName, rootEntityType.FullName, entitySetMapping.
Set
.Name),
1172
ModificationFunctionMappingLoader functionLoader = new ModificationFunctionMappingLoader(this, entitySetMapping.
Set
);
1185
deleteFunctionMapping = functionLoader.LoadEntityTypeModificationFunctionMapping(nav.Clone(), entitySetMapping.
Set
, false, true, entityType);
1188
insertFunctionMapping = functionLoader.LoadEntityTypeModificationFunctionMapping(nav.Clone(), entitySetMapping.
Set
, true, false, entityType);
1191
updateFunctionMapping = functionLoader.LoadEntityTypeModificationFunctionMapping(nav.Clone(), entitySetMapping.
Set
, true, true, entityType);
1270
setMapping.
Set
.Name, StorageMappingErrorCode.TypeNameForFirstQueryView,
1278
setMapping.
Set
.Name, StorageMappingErrorCode.EmptyQueryView,
1292
setMapping.
Set
.Name, StorageMappingErrorCode.NoTypeNameForTypeSpecificQueryView,
1300
EntityType rootEntityType = (EntityType)setMapping.
Set
.ElementType;
1302
e => Strings.Mapping_InvalidContent_Entity_Type_For_Entity_Set(e.FullName, rootEntityType.FullName, setMapping.
Set
.Name),
1326
AddToSchemaErrorsWithMemberInfo(Strings.Mapping_QueryViewMultipleTypeInTypeName, setMapping.
Set
.ToString(),
1332
if (includeSubtypes && setMapping.
Set
.ElementType.EdmEquals(entityType))
1334
AddToSchemaErrorWithMemberAndStructure(Strings.Mapping_QueryView_For_Base_Type, entityType.ToString(), setMapping.
Set
.ToString(),
1344
entityType.Name, setMapping.
Set
.Name, StorageMappingErrorCode.EmptyQueryView,
1351
setMapping.
Set
.Name, entityType.Name, StorageMappingErrorCode.EmptyQueryView,
1359
Triple key = new Triple(setMapping.
Set
, new Pair<EntityTypeBase, bool>(entityType, includeSubtypes));
1370
Strings.Mapping_QueryView_Duplicate_OfType(setMapping.
Set
, entityType),
1378
Strings.Mapping_QueryView_Duplicate_OfTypeOnly(setMapping.
Set
, entityType),
2561
if ((!(associationSetMapping.
Set
.ElementType.Equals(associationType))))
2564
associationSetMapping.
Set
.ElementType.FullName, associationSetMapping.
Set
.Name),
2602
ModificationFunctionMappingLoader functionLoader = new ModificationFunctionMappingLoader(this, associationSetMapping.
Set
);
2614
deleteFunctionMapping = functionLoader.LoadAssociationSetModificationFunctionMapping(nav.Clone(), associationSetMapping.
Set
, false);
2617
insertFunctionMapping = functionLoader.LoadAssociationSetModificationFunctionMapping(nav.Clone(), associationSetMapping.
Set
, true);
2625
(AssociationSet)associationSetMapping.
Set
, deleteFunctionMapping, insertFunctionMapping);
2644
AddToSchemaErrorsWithMemberInfo(Strings.Mapping_QueryView_PropertyMaps, typeMapping.SetMapping.
Set
.Name,
2772
AddToSchemaErrorsWithMemberInfo(Strings.Mapping_QueryView_PropertyMaps, setMapping.
Set
.Name,
2793
AddToSchemaErrorsWithMemberInfo(Strings.Mapping_QueryView_PropertyMaps, setMapping.
Set
.Name,
System\Data\Mapping\Update\Internal\ViewLoader.cs (5)
282
m_functionMappingTranslators.Add(entitySetMapping.
Set
, ModificationFunctionMappingTranslator.CreateEntitySetTranslator(entitySetMapping));
302
m_functionMappingTranslators.Add(entitySetMapping.
Set
, null);
310
AssociationSet set = (AssociationSet)associationSetMapping.
Set
;
323
if (!m_functionMappingTranslators.ContainsKey(associationSetMapping.
Set
))
326
m_functionMappingTranslators.Add(associationSetMapping.
Set
, null);
System\Data\Mapping\ViewGeneration\CellCreator.cs (1)
299
EntitySetBase extent = extentMap.
Set
;
System\Data\Mapping\ViewGeneration\GeneratedView.cs (5)
95
if (!GeneratedView.TryParseView(eSQL, true, setMapping.
Set
, mappingItemCollection, config, out commandTree, out discriminatorMap, out parserException))
97
EdmSchemaError error = new EdmSchemaError(System.Data.Entity.Strings.Mapping_Invalid_QueryView2(setMapping.
Set
.Name, parserException.Message),
116
if ((queryResultType == null) || (!setMapping.
Set
.ElementType.IsAssignableFrom(queryResultType.TypeUsage.EdmType)))
118
EdmSchemaError error = new EdmSchemaError(System.Data.Entity.Strings.Mapping_Invalid_QueryView_Type(setMapping.
Set
.Name),
128
generatedView = new GeneratedView(setMapping.
Set
, type, commandTree, eSQL, discriminatorMap, mappingItemCollection, config);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
223
AssociationSet associationSet = (AssociationSet)colocatedAssociationSetMap.
Set
;
System\Data\Mapping\ViewValidator.cs (8)
41
if (setMapping.
Set
.BuiltInTypeKind == BuiltInTypeKind.AssociationSet)
120
_setMapping.
Set
.Name, elementString, expressionKind), (int)StorageMappingErrorCode.MappingUnsupportedExpressionKindQueryView,
133
_setMapping.
Set
.Name, expression.Property.Name, expression.Property.BuiltInTypeKind), (int)StorageMappingErrorCode.MappingUnsupportedPropertyKindQueryView,
152
_setMapping.
Set
.Name, type.FullName), (int)StorageMappingErrorCode.MappingUnsupportedInitializationQueryView,
215
_setMapping.
Set
.Name, expression.Function.Identity), (int)StorageMappingErrorCode.UnsupportedFunctionCallInQueryView,
250
_setMapping.
Set
.Name, target.Name), (int)StorageMappingErrorCode.MappingUnsupportedScanTargetQueryView,
310
AssociationSet associationSet = _setMapping.
Set
as AssociationSet;
325
setInfo.EntitySet.Name, declaredSet.Name, setEnd.Name, _setMapping.
Set
.Name), (int)StorageMappingErrorCode.MappingUnsupportedInitializationQueryView,