30 references to Single
System.Data.Entity (25)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (1)
310var singleKeyNameAndValue = keyPropAndValue.Single();
System\Data\Common\Utils\MetadataHelper.cs (1)
291e => !e.EdmEquals(end)).Single();
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
290ReferentialConstraint rc = aSet.ElementType.ReferentialConstraints.Single();
System\Data\Mapping\StorageMappingItemLoader.cs (5)
1424ReferentialConstraint constraint = associationSet.ElementType.ReferentialConstraints.Single(); 1426if (associationSet.ElementType.ReferentialConstraints.Single().ToProperties.All(p => dependentKeys.Contains(p))) 1707targetFunction = functionOverloads.Single(); 4070ReferentialConstraint constraint = associationSet.ElementType.ReferentialConstraints.Single(); 4313ReferentialConstraint constraint = associationType.ReferentialConstraints.Single();
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (3)
375if (resultIJDriverChildren == null || !resultIJDriverChildren.Contains(nodes.Single())) 382extentLojNode.Add(extentInfo.Value.Single()); 456yield return pkFkInfo.Item1.AssociationSetEnds.Where(ase => ase.Name == pkFkInfo.Item2.ToRole.Name).Single().EntitySet;
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (1)
194return this.Slots.Where(slot => slot.IsRequiredByParent).Single().AsCqt(row);
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (1)
137typeMap.Add(new KeyValuePair<object, EntityType>(discriminatorDomain.Single(), elseType));
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (1)
242bool isNull = constants.Count == 1 && constants.Single().IsNull();
System\Data\Mapping\ViewGeneration\Structures\ScalarRestriction.cs (3)
105cqt = cqt.Equal(domainValues.Single().AsCqt(row, this.RestrictedMemberSlot.MemberPath)); 171domainValues.Single().ToCompactString(builder); 175domainValues.Single().AsEsql(builder, RestrictedMemberSlot.MemberPath, blockAlias);
System\Data\Mapping\ViewGeneration\Structures\TypeRestriction.cs (1)
144cqt = cqt.IsOfOnly(TypeUsage.Create(((TypeConstant)this.Domain.Values.Single()).EdmType));
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
675var edmScalarPropertyAttribute = (EdmScalarPropertyAttribute)clrProperty.GetCustomAttributes(typeof(EdmScalarPropertyAttribute), false).Single();
System\Data\Objects\DataClasses\EntityReference.cs (1)
637ReferentialConstraint constraint = ((AssociationType)RelationMetadata).ReferentialConstraints.Single();
System\Data\Objects\ELinq\Funcletizer.cs (1)
423parameterExp = parameters.Single();
System\Data\Objects\ELinq\InitializerFacet.cs (1)
226ConstructorInfo constructor = groupType.GetConstructors().Single();
System\Data\Objects\ELinq\ObjectQueryProvider.cs (1)
215return (sequence) => { return Enumerable.Single(sequence); };
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
180var member = memberGroup.Single();
System\Data\SqlClient\SqlProviderUtilities.cs (1)
196var constraint = associationSet.ElementType.ReferentialConstraints.Single();
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (1)
1202var tableColumn = columns.Where(c => c.ColumnName == pkColumn.Name).Single();
System.Data.Linq (1)
SqlClient\Query\QueryConverter.cs (1)
2703exprs[i] = this.VisitExpression(list.Initializers[i].Arguments.Single());
System.Data.Services.Client (1)
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
114return query.AsEnumerable().Single();
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
861return entitySets.Single();
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
818return (AssociationEndMember)end.DeclaringType.Members.Where(m => m != end).Single();