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