295 references to Where
System.Activities (11)
System\Activities\DynamicUpdate\ActivityComparer.cs (2)
120
return collection.
Where
(a => a.Parent == parent).ToList();
125
return collection.
Where
(d => d.Owner == parentActivity).ToList();
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (1)
147
return result.
Where
(a => a != null && a.Parent == activity);
System\Activities\NativeActivityContext.cs (1)
2110
IEnumerable<RuntimeDelegateArgument> expectedParameters = activityDelegate.RuntimeDelegateArguments.
Where
(p => ArgumentDirectionHelper.IsIn(p.Direction));
System\Activities\Statements\MethodResolver.cs (2)
467
methodCandidates = match.
Where
(m => m.ContainsGenericParameters == false).ToArray();
480
MethodBase[] methodsDeclaredHere = methodCandidates.
Where
(mb => mb.DeclaringType == declaringType).ToArray();
System\Activities\Validation\ActivityValidationServices.cs (1)
123
IEnumerable<RuntimeArgument> arguments = rootActivity.RuntimeArguments.
Where
((a) => ArgumentDirectionHelper.IsIn(a.Direction));
System\Activities\Validation\ValidationHelper.cs (4)
46
IEnumerable<RuntimeArgument> requiredArguments = entry.Value.
Where
((a) => a.IsRequired);
60
IEnumerable<RuntimeArgument> optionalArguments = entry.Value.
Where
((a) => !a.IsRequired);
99
foreach (string groupName in configurationResults.Keys.
Where
((k) => configurationResults[k] == false))
129
IEnumerable<string> configuredGroups = configurationResults.Keys.
Where
((k) => configurationResults[k]).OrderBy((k) => k, StringComparer.Ordinal);
System.Activities.Core.Presentation (17)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
88
IEnumerable<ConnectionPoint> freeDestConnPoints = destConnPoints.
Where
(p =>
99
destConnPoints.
Where
(
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (4)
2187
List<ConnectionPoint> connectionPoints = new List<ConnectionPoint>(availableConnectionPoints.
Where
<ConnectionPoint>((p) =>
2537
connectionPoints = new List<ConnectionPoint>(connectionPoints.
Where
<ConnectionPoint>((p) =>
2556
point = this.FindClosestConnectionPointNotOfType(srcConnPoint, new List<ConnectionPoint>(FlowchartDesigner.GetConnectionPoints(destDesigner).
Where
<ConnectionPoint>(p =>
2571
point = this.FindClosestConnectionPointNotOfType(destConnPoint, new List<ConnectionPoint>(FlowchartDesigner.GetConnectionPoints(srcDesigner).
Where
<ConnectionPoint>(p =>
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (2)
383
return new List<ConnectionPoint>(connectionPoints.
Where
<ConnectionPoint>(
462
IEnumerable<Transition> toRemove = state.Transitions.
Where
<Transition>((p) =>
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
398
modelItem => (modelItem.Properties[StateDesigner.DisplayNamePropertyName].ComputedValue as string)).
Where
(
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
583
.
Where
<string>(p => 0 == string.Compare(p, 0, this.ArgumentPrefix, 0, this.ArgumentPrefix.Length, StringComparison.Ordinal))
System\Activities\Presentation\TypeCollectionDesigner.xaml.cs (1)
64
return wrapperCollection.
Where
(wrapper => wrapper.Type != null).Select(wrapper => wrapper.Type);
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (3)
118
toSelect = editor.bindingElements.
Where
(where).
Where
(p => string.Equals(p.BindingName, bindingName)).FirstOrDefault();
122
toSelect = editor.bindingElements.
Where
(where).FirstOrDefault();
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (3)
75
.
Where
(member => member.GetCustomAttributes(typeof(DataMemberAttribute), false).Length > 0)
82
.
Where
(member => member.MemberType == MemberTypes.Field && member.GetCustomAttributes(typeof(NonSerializedAttribute), false).Length == 0)
89
.
Where
(member => (member.MemberType == MemberTypes.Field || member.MemberType == MemberTypes.Property) &&
System.Activities.Presentation (26)
System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (2)
641
List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.
Where
(entry => IsUnresolved(entry.Value)).ToList();
732
List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.
Where
(entry => !IsUnresolved(entry.Value)).ToList();
System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (1)
43
var toDelete = selection.SelectedObjects.
Where
(p => null != p.View && p.View is WorkflowViewElement && !p.View.Equals(designerView.RootDesigner));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
492
.
Where
(p =>
758
.
Where
(p =>
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
239
itemsToSearch = items.
Where
<ModelItem>(item => !ModelUtilities.IsModelItemKeyValuePair(item.ItemType)
244
itemsToSearch = items.
Where
<ModelItem>(item =>
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (1)
39
var toHide = menu.Items.OfType<MenuItem>().
Where
(p =>
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (3)
492
IEnumerable<DesignTimeArgument> oldDuplicates = this.argumentWrapperCollection.
Where
<DesignTimeArgument>(checkForOldNameDuplicates);
1173
foreach (ModelItem toRemove in attributes.
Where
<ModelItem>(p => typeof(RequiredArgumentAttribute).IsAssignableFrom(p.ItemType)))
1257
.
Where
(p =>
System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
86
return AppDomain.CurrentDomain.GetAssemblies().
Where
<Assembly>(assembly => !assembly.IsDynamic);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
795
.
Where
(p => DataTemplate.Equals(p.CellEditingTemplate, DataGridHelper.DynamicCellContentTemplate) &&
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
496
.
Where
(p => DesignerView.GetMenuItemOrigin(p) != null)
588
.
Where
(item => commands.Any(
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
459
.
Where
<ModelItem>(item => !ModelUtilities.IsModelItemKeyValuePair(item.ItemType) || ModelUtilities.IsSwitchCase(item))
System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
98
.
Where
(p => string.Equals(p.Value, prefix))
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (1)
166
foreach (KeyValuePair<ModelItem, int> kvp in nonSources.
Where
((kvp) => 0 < kvp.Value))
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (6)
180
IEnumerable<DesignTimeVariable> oldDuplicates = this.variableWrapperCollection.
Where
<DesignTimeVariable>(checkForOldNameDuplicates);
832
.
Where
<ModelProperty>(p => (typeof(DelegateArgument).IsAssignableFrom(p.PropertyType) && null != p.Value))
947
ModelItem result = element.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).LastOrDefault();
958
var scope1List = scope1.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).ToList();
959
var scope2List = scope2.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).ToList();
1347
.
Where
(p =>
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1987
IEnumerable<ModelItem> filteredVariables = variables.
Where
<ModelItem>(filterDelegate);
2000
variablesInScope.AddRange(arguments.
Where
<ModelItem>(filterDelegate));
System.ComponentModel.DataAnnotations (1)
DataAnnotations\Validator.cs (1)
369
foreach (ValidationResult result in results.
Where
(r => r != ValidationResult.Success)) {
System.Core (3)
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
288
var hoistedVars = GetVariables().
Where
(p => Definitions[p] == VariableStorageKind.Hoisted).ToReadOnly();
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (1)
89
return wrappedChild.
Where
(m_predicate);
System\Linq\SequenceQuery.cs (1)
326
MethodInfo[] methods = type.GetMethods(flags).
Where
(m => m.Name == name).ToArray();
System.Data (20)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\DebuggerService.cs (2)
641
List<KeyValuePair<object, SourceLocation>> unresolvedEntries = this.instanceToSourceLocationMapping.
Where
(entry => IsUnresolved(entry.Value)).ToList();
732
List<KeyValuePair<ModelItem, SourceLocation>> resolvedEntries = this.modelItemToSourceLocation.
Where
(entry => !IsUnresolved(entry.Value)).ToList();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (1)
43
var toDelete = selection.SelectedObjects.
Where
(p => null != p.View && p.View is WorkflowViewElement && !p.View.Equals(designerView.RootDesigner));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
492
.
Where
(p =>
758
.
Where
(p =>
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (2)
239
itemsToSearch = items.
Where
<ModelItem>(item => !ModelUtilities.IsModelItemKeyValuePair(item.ItemType)
244
itemsToSearch = items.
Where
<ModelItem>(item =>
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
492
IEnumerable<DesignTimeArgument> oldDuplicates = this.argumentWrapperCollection.
Where
<DesignTimeArgument>(checkForOldNameDuplicates);
1257
.
Where
(p =>
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\AssemblyContextControlItem.cs (1)
86
return AppDomain.CurrentDomain.GetAssemblies().
Where
<Assembly>(assembly => !assembly.IsDynamic);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
459
.
Where
<ModelItem>(item => !ModelUtilities.IsModelItemKeyValuePair(item.ItemType) || ModelUtilities.IsSwitchCase(item))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ParserContext.cs (1)
98
.
Where
(p => string.Equals(p.Value, prefix))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\UniqueModelItemHelper.cs (1)
166
foreach (KeyValuePair<ModelItem, int> kvp in nonSources.
Where
((kvp) => 0 < kvp.Value))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (5)
180
IEnumerable<DesignTimeVariable> oldDuplicates = this.variableWrapperCollection.
Where
<DesignTimeVariable>(checkForOldNameDuplicates);
947
ModelItem result = element.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).LastOrDefault();
958
var scope1List = scope1.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).ToList();
959
var scope2List = scope2.GetParentEnumerator().
Where
(p => null != VariableHelper.GetVariableCollection(p)).ToList();
1347
.
Where
(p =>
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1987
IEnumerable<ModelItem> filteredVariables = variables.
Where
<ModelItem>(filterDelegate);
2000
variablesInScope.AddRange(arguments.
Where
<ModelItem>(filterDelegate));
System.Data.DataSetExtensions (1)
System\Data\EnumerableRowCollectionExtensions.cs (1)
32
new EnumerableRowCollection<TRow>(source, Enumerable.
Where
<TRow>(source, predicate), null); //copy constructor
System.Data.Entity (104)
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (1)
31
System.Linq.Enumerable.
Where
(
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
321
return function.Parameters.
Where
(p => p.Mode == ParameterMode.In || p.Mode == ParameterMode.InOut).ToArray();
System\Data\Common\CommandTrees\Internal\PatternMatchRules.cs (1)
88
Debug.Assert(rules.
Where
(r => r == null).Count() == 0, "Individual PatternMatchRules must not be null");
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (4)
125
.
Where
(es => es.BuiltInTypeKind == BuiltInTypeKind.AssociationSet)
127
.
Where
(assocSet =>
225
.
Where
(psdt => constructedEntityType == psdt.Item1 || constructedEntityType.IsSubtypeOf(psdt.Item1))
423
.
Where
(px => px.Instance.ExpressionKind == DbExpressionKind.VariableReference &&
System\Data\Common\EntitySql\SemanticAnalyzer.cs (7)
1607
.
Where
(e => TypeSemantics.IsStructurallyEqualOrPromotableTo(refType, e.TypeUsage.EdmType) &&
1647
.
Where
(e => TypeSemantics.IsStructurallyEqualOrPromotableTo(driverEntityType.GetReferenceType(), e.TypeUsage.EdmType) &&
1747
.
Where
(e => TypeSemantics.IsStructurallyEqualOrPromotableTo(sourceRefType, e.TypeUsage.EdmType) &&
1769
.
Where
(e => !e.EdmEquals(fromEnd)).ToArray();
2583
var multisetTypes = mSetExprs.
Where
(e => e != null).Select(e => e.ResultType).ToArray();
2659
var resultTypes = thenExprList.
Where
(e => e != null).Select(e => e.ResultType).ToList();
3797
.
Where
(groupAggregateInfo => groupAggregateInfo.AggregateKind == GroupAggregateKind.Function)
System\Data\Common\Utils\MetadataHelper.cs (2)
290
AssociationSetEnd otherEnd = end.ParentAssociationSet.AssociationSetEnds.
Where
(
336
.
Where
(
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
42
primitiveTypes = primitiveTypes.
Where
(t => !Helper.IsSpatialType(t))
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (2)
233
.
Where
(m => !Helper.IsEnumMemberValueInRange(enumUnderlyingType.TypeKind, (long)m.Value));
244
if (_enumMembers.GroupBy(o => o.Name).
Where
(g => g.Count() > 1).Any())
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
389
errorCollection.
Where
(e => e.Severity == EdmSchemaErrorSeverity.Error).Count() > MaxErrorCount)
System\Data\Mapping\FunctionImportMapping.ReturnTypeRenameMapping.cs (2)
231
FunctionImportReturnTypeStructuralTypeColumn isOfTypeColumn = _columnListForIsTypeOfType.
Where
(t => t.Type == typeForRename).LastOrDefault();
241
_columnListForIsTypeOfType.
Where
(t => t.Type.IsAssignableFrom(typeForRename));
System\Data\Mapping\MetadataMappingHasherVisitor.cs (1)
264
foreach (var entityType in MetadataHelper.GetTypeAndSubtypesOf(entitySet.ElementType, this.m_EdmItemCollection, false).
Where
(type => type != entitySet.ElementType))
System\Data\Mapping\StorageEntityContainerMapping.cs (2)
292
IEnumerable<StorageAssociationSetMapping> associationSetMappings = m_associationSetMappings.Values.Cast<StorageAssociationSetMapping>().
Where
(w => ((w.StoreEntitySet != null) && (w.StoreEntitySet == storeEntitySet)));
294
associationSetMappings = associationSetMappings.
Where
(associationSetMap => ((associationSetMap.Set as AssociationSet).AssociationSetEnds.Any(associationSetEnd => associationSetEnd.EntitySet == edmEntitySet)));
System\Data\Mapping\StorageMappingItemCollection.cs (3)
501
.
Where
(functionMappings => functionMappings.UpdateFunctionMapping != null))
643
.
Where
(p => entitySet.ForeignKeyDependents.SelectMany(fk => fk.Item2.ToProperties).Contains(p)));
675
foreach (var parameterBinding in functionMappings.UpdateFunctionMapping.ParameterBindings.
Where
(p => !p.IsCurrent))
System\Data\Mapping\StorageMappingItemLoader.cs (3)
668
.
Where
(s => !s.HasModificationFunctionMapping).Select(s=>s.Set.Name)),
2367
foreach (var entityTypeMapping in functionImportKB.NormalizedEntityTypeMappings.
Where
(f => f.ImpliedEntityTypes[typeID]))
2369
foreach (var condition in entityTypeMapping.ColumnConditions.
Where
(c => c != null))
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (2)
334
var nonTrivial = extentMap.KeyValuePairs.
Where
(m => m.Value.Count > 1).ToArray();
456
yield return pkFkInfo.Item1.AssociationSetEnds.
Where
(ase => ase.Name == pkFkInfo.Item2.ToRole.Name).Single().EntitySet;
System\Data\Mapping\ViewGeneration\CellCreator.cs (7)
104
.
Where
(member => IsBooleanMember(member))
105
.
Where
(boolMember => cell.SQuery.GetConjunctsFromWhereClause()
106
.
Where
(restriction => restriction.Domain.Values.Contains(Constant.NotNull))
215
.
Where
(restriction => restriction.RestrictedMemberSlot.MemberPath.Equals(memberToExpand))
216
.
Where
(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any()
218
.
Where
(restriction => restriction.RestrictedMemberSlot.MemberPath.Equals(rightSidePath))
219
.
Where
(restriction => restriction.Domain.Values.Contains(negatedCondition)).Any())
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (3)
193
Debug.Assert(this.Slots.
Where
(slot => slot.IsRequiredByParent).Count() == 1, "Top level projection must project only one slot.");
194
return this.Slots.
Where
(slot => slot.IsRequiredByParent).Single().AsCqt(row);
199
this.Slots.
Where
(slot => slot.IsRequiredByParent).Select(slot => new KeyValuePair<string, DbExpression>(slot.CqlFieldAlias, slot.AsCqt(row))));
System\Data\Mapping\ViewGeneration\QueryRewriting\QueryRewriter.cs (3)
445
nonConditionalAttributes = new List<MemberPath>(nonConditionalAttributes.
Where
(a => !a.IsPartOfKey));
498
IEnumerable<LeftCellWrapper> usedCells = _context.AllWrappersForExtent.
Where
(w => _usedViews.Contains(w.FragmentQuery));
1177
return attributes.
Where
(attr => !attr.IsPartOfKey);
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingPass.cs (1)
248
get { return m_views.
Where
(view => !m_usedViews.ContainsKey(view)); }
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (2)
341
foreach (var association in associations.
Where
(association => association.AssociationSetEnds.Any(end => ( end.CorrespondingAssociationEndMember.RelationshipMultiplicity == RelationshipMultiplicity.One &&
344
foreach (var associationCell in associationSets.
Where
(c => c.GetRightQuery(target).Extent.EdmEquals(association)))
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (2)
356
cDomain.AddRange(restriction.Domain.Values.
Where
(c => !(c.Equals(Constant.Null) || c.Equals(Constant.NotNull))));
469
.
Where
(restriction => MemberPath.EqualityComparer.Equals(restriction.RestrictedMemberSlot.MemberPath, slot.MemberPath))
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
233
IEnumerable<StorageScalarPropertyMapping> scalarPropertyMaps = propertyMaps.
Where
(propMap => (propMap.EdmProperty.Equals(edmProperty)));
270
IEnumerable<StorageEndPropertyMapping> otherEnds = mapFragment.Properties.OfType<StorageEndPropertyMapping>().
Where
(eMap => (!eMap.Equals(endMap)));
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
288
cDomain.Unite(sDomain.
Where
(constant => !constant.IsNull() && !(constant is NegatedConstant)));
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
317
foreach (var edge in edges.
Where
(type => !type.EdmEquals(avoidEdge)))
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
133
foreach (NegatedConstant negatedConst in condition.Domain.Values.Select(cellConstant => cellConstant as NegatedConstant).
Where
(negated => negated != null))
307
var nonAssociationWrappers = leftCellWrappers.
Where
(r => !(r.LeftExtent is AssociationSet) && !(r.RightCellQuery.Extent is AssociationSet));
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (3)
375
var foreignKeyAssociations = childContext.EntityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().
Where
(it => it.ElementType.IsForeignKey).Select(it => it.ElementType);
386
var childRefPropertiesCollection = childPropertiesSet.
Where
(it => it.SetEquals(new Set<EdmProperty>(refConstraint.ToProperties)));
387
var parentRefPropertiesCollection = parentPropertiesSet.
Where
(it => it.SetEquals(new Set<EdmProperty>(refConstraint.FromProperties)));
System\Data\Mapping\ViewGeneration\Validator.cs (4)
291
var mapepdFragments = m_cells.
Where
(otherCell => otherCell != cell)
292
.
Where
(otherCell => otherCell.CQuery.Extent == cExtent && otherCell.SQuery.Extent == sExtent);
351
error = cell.CQuery.CheckForProjectedNotNullSlots(cell, m_cells.
Where
(c=> c.SQuery.Extent is AssociationSet));
356
error = cell.SQuery.CheckForProjectedNotNullSlots(cell, m_cells.
Where
(c => c.CQuery.Extent is AssociationSet));
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (4)
137
var allForeignKeyAssociationSets = this.m_entityContainerMapping.EdmEntityContainer.BaseEntitySets.OfType<AssociationSet>().
Where
(it => it.ElementType.IsForeignKey);
141
oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.
Where
(it => (it.AssociationEndMembers.All(endMember => endMember.RelationshipMultiplicity == RelationshipMultiplicity.One)));
143
oneToOneForeignKeyAssociationsForThisWrapper = oneToOneForeignKeyAssociationsForThisWrapper.
Where
(it => (it.AssociationEndMembers.All(endMember => entityTypes.Contains(endMember.GetEntityType()))));
146
var oneToOneForeignKeyAssociationSetsForThisWrapper = allForeignKeyAssociationSets.
Where
(it => oneToOneForeignKeyAssociationsForThisWrapper.Contains(it.ElementType));
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (1)
392
var cellsForExtent = m_cellGroup.
Where
(c => c.GetLeftQuery(viewTarget).Extent == extent);
System\Data\Mapping\ViewValidator.cs (1)
343
return this.variableScopes.
Where
(it => (it.Key == expression.VariableName)).Select(it => it.Value).FirstOrDefault();
System\Data\Metadata\DefaultAssemblyResolver.cs (2)
88
return assemblies.
Where
(a => a != null && !MetadataAssemblyHelper.ShouldFilterAssembly(a));
146
return assemblyList.
Where
(a => a != null);
System\Data\Metadata\EdmItemCollection.cs (1)
387
return _primitiveTypeMaps.GetTypes().
Where
(type => !Helper.IsSpatialType(type)).ToList().AsReadOnly();
System\Data\Metadata\MappingMetadataHelper.cs (2)
35
foreach (StorageTypeMapping typeMap in extentMap.TypeMappings.
Where
(map => map.Types.Union(map.IsOfTypes).Contains(entityType)))
81
foreach (var v in entitySetMapping.ModificationFunctionMappings.
Where
(functionMap => functionMap.EntityType.Equals(entityType)))
System\Data\Metadata\MetadataWorkspace.cs (1)
214
.
Where
(e => e != XmlConstants.UndefinedVersion)
System\Data\Metadata\ObjectLayer\KnownAssembliesSet.cs (1)
66
return _assemblies.Values.
Where
(e => e.HaveSeenInCompatibleContext(loaderCookie, itemCollection));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (3)
387
foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().
Where
(m => Helper.IsComplexType(m.TypeUsage.EdmType)))
563
foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().
Where
(p => Helper.IsPrimitiveType(p.TypeUsage.EdmType)))
603
foreach (EdmProperty cspaceProperty in cspaceType.GetDeclaredOnlyMembers<EdmProperty>().
Where
(p => Helper.IsEnumType(p.TypeUsage.EdmType)))
System\Data\Metadata\Perspective.cs (2)
96
functionImport = entityContainer.FunctionImports.
Where
(fi => String.Equals(fi.Name, functionImportName, StringComparison.OrdinalIgnoreCase)).SingleOrDefault();
100
functionImport = entityContainer.FunctionImports.
Where
(fi => fi.Name == functionImportName).SingleOrDefault();
System\Data\Objects\ELinq\BindingContext.cs (1)
81
.
Where
(binding => binding.LinqExpression == linqExpression)
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
2259
IEnumerable<DbExpression> constantArguments = arguments.
Where
(argument => argument.ExpressionKind == DbExpressionKind.Constant);
2267
IEnumerable<DbExpression> otherArguments = arguments.
Where
(argument => argument.ExpressionKind != DbExpressionKind.Constant);
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
436
.
Where
(t => t.IsGenericParameter)
System\Data\Objects\ObjectContext.cs (1)
2903
}).
Where
(entityType => entityType != null)
System\Data\Query\InternalTrees\Command.cs (1)
369
get { return m_vars.
Where
(v => v.VarType != VarType.NotValid); }
System\Data\Query\PlanCompiler\JoinGraph.cs (4)
1133
foreach (AugmentedJoinNode augmentedJoinNode in m_vertexes.OfType<AugmentedJoinNode>().
Where
(j => j.Node.Op.OpType == OpType.LeftOuterJoin && j.JoinEdges.Count > 0))
1276
columnVars.
Where
(v => v.ColumnMetadata.IsNullable).Count() == 0)
1642
foreach (List<JoinEdge> joinList in compatibleGroups.
Where
(l => l.Count > 1))
2149
if (childColumnVars.Count > 1 && childColumnVars.
Where
(v => v.ColumnMetadata.IsNullable).Count() > 0)
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1960
VarList outputVars = Command.CreateVarList(op.Outputs.
Where
(v => v.VarType == VarType.Parameter));
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
193
foreach (var paramVar in m_command.Vars.OfType<ParameterVar>().
Where
(v => md.TypeSemantics.IsEnumerationType(v.Type) || md.TypeSemantics.IsStrongSpatialType(v.Type)).ToArray())
3028
IEnumerable<TypeInfo> types = typeInfo.GetTypeHierarchy().
Where
(t => !t.Type.EdmType.Abstract);
System\Data\Query\PlanCompiler\ProjectionPruner.cs (1)
532
List<Node> constantKeys = varDefListNode.Children.
Where
(d => d.Op.OpType == OpType.VarDef
System\Data\Query\PlanCompiler\TransformationRules.cs (4)
207
var applyAncestors = this.m_relOpAncestors.
Where
(a =>
2332
if (varDefListNode.Children.
Where
(c => c.Child0.Op.OpType == OpType.NullSentinel).Count() == 0)
2348
if (!canChangeNullSentinelValue || !TransformationRulesContext.TryGetInt32Var(n.Child1.Children.
Where
(child => child.Child0.Op.OpType == OpType.Constant || child.Child0.Op.OpType == OpType.InternalConstant).Select(child => ((VarDefOp)(child.Op)).Var), out inputSentinel))
2350
inputSentinel = n.Child1.Children.
Where
(child => child.Child0.Op.OpType == OpType.NullSentinel).Select(child => ((VarDefOp)(child.Op)).Var).FirstOrDefault();
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
549
paramsToForceNonUnicode = new HashSet<string>(_candidateParametersToForceNonUnicode.
Where
(p => p.Value).Select(q => q.Key).ToList());
1921
var realValues = values.
Where
(v => v.ExpressionKind != DbExpressionKind.IsNull);
System\Data\SqlClient\SqlProviderManifest.cs (2)
223
IEnumerable<EdmFunction> functions = base.GetStoreFunctions().
Where
(f => !IsKatmaiOrNewer(f));
227
functions = functions.
Where
(f => !IsYukonOrNewer(f));
System.Data.Entity.Design (11)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
701
foreach (EdmFunction functionImport in container.FunctionImports.
Where
(fi => fi.IsComposableAttribute))
766
foreach (MetadataProperty property in item.MetadataProperties.
Where
(p => p.PropertyKind == PropertyKind.Extended))
System\Data\Entity\Design\EntityCodeGenerator.cs (4)
90
if (errors.
Where
(e => e.Severity == EdmSchemaErrorSeverity.Error).Any())
128
if (errors.
Where
(e => e.Severity == EdmSchemaErrorSeverity.Error).Any())
176
if (errors.
Where
(e => e.Severity == EdmSchemaErrorSeverity.Error).Any())
237
if (errors.
Where
(e => e.Severity == EdmSchemaErrorSeverity.Error).Any())
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (2)
1196
foreach (EdmMember pkColumn in properties.
Where
(p => primaryKeys.Contains(p.Name)))
1202
var tableColumn = columns.
Where
(c => c.ColumnName == pkColumn.Name).Single();
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
267
schemaErrors.
Where
(s =>
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (1)
43
foreach (var version in EntityFrameworkVersions.ValidVersions.
Where
(v => v > EntityFrameworkVersions.Version2).OrderByDescending(v => v))
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
280
return _edmItemCollection.GetItems<EdmType>().
Where
(b => b.BaseType == edmType);
System.Data.Linq (15)
ChangeTracker.cs (2)
722
IEnumerable<MetaDataMember> deferredMembers = this.Type.PersistentDataMembers.
Where
(p => p.IsDeferred && !p.IsAssociation);
758
IEnumerable<MetaDataMember> deferredMembers = this.Type.PersistentDataMembers.
Where
(p => p.IsDeferred && !p.IsAssociation);
DataShape.cs (1)
222
if (edgeTargets.
Where
(et=>et.IsAssignableFrom(edge.DeclaringType) || edge.DeclaringType.IsAssignableFrom(et)).Any()) {
Mapping\AttributedMetaModel.cs (4)
116
return this.metaTables.Values.
Where
(x => x != null).Distinct();
559
this.identities = this.dataMembers.
Where
(m => m.IsPrimaryKey).ToList().AsReadOnly();
560
this.persistentMembers = this.dataMembers.
Where
(m => m.IsPersistent).ToList().AsReadOnly();
801
this.associations = this.dataMembers.
Where
(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly();
Mapping\MappedMetaModel.cs (4)
169
return this.metaTables.Values.
Where
(x => x != null).Distinct();
597
this.identities = this.dataMembers.
Where
(m => m.IsPrimaryKey).ToList().AsReadOnly();
598
this.persistentDataMembers = this.dataMembers.
Where
(m => m.IsPersistent).ToList().AsReadOnly();
881
this.associations = this.dataMembers.
Where
(m => m.IsAssociation).Select(m => m.Association).ToList().AsReadOnly();
SqlClient\Query\SqlOuterApplyReducer.cs (1)
96
foreach(List<SqlColumn> selection in liftedSelections.
Where
(s => s.Count > 0)) {
SqlClient\Query\SqlRetyper.cs (2)
171
foreach (SqlWhen when in c.Whens.
Where
(w => w.Value.SqlType != type && !w.Value.SqlType.IsRuntimeOnlyType)) {
193
foreach (SqlWhen when in c.Whens.
Where
(w => w.Value.SqlType != type && !w.Value.SqlType.IsRuntimeOnlyType)) {
SqlClient\Query\Translator.cs (1)
508
return type.DataMembers.
Where
(m => IsPublic(m.Member));
System.Data.Services (21)
System\Data\Services\Epm\EpmContentSerializerBase.cs (2)
147
segmentsToSerialize = targetSegment.SubSegments.
Where
(s => s.IsAttribute == true);
150
segmentsToSerialize = targetSegment.SubSegments.
Where
(s => s.IsAttribute == false);
System\Data\Services\Epm\EpmCustomContentDeSerializer.cs (1)
158
foreach (var attributeSegment in currentRoot.SubSegments.
Where
(s => s.IsAttribute))
System\Data\Services\Epm\EpmHelper.cs (1)
217
IEnumerable<MetadataProperty> result = metadataExtendedProperties.
Where
(mdp => mdp.Name == extendedPropertyName);
System\Data\Services\Epm\EpmTargetTree.cs (1)
209
foreach (EpmTargetPathSegment childSegment in currentSegment.SubSegments.
Where
(s => !s.IsAttribute))
System\Data\Services\Providers\ExpandedProjectionNode.cs (2)
372
existingNodes.
Where
(node => node.Property == property).Count() <= 1,
386
existingNodes.
Where
(node => node.Property == null).ToList();
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
2096
IEnumerable<MetadataProperty> extendedProperties = edmType.MetadataProperties.
Where
(mp => mp.PropertyKind == PropertyKind.Extended);
2116
foreach (EdmMember member in edmType.Members.
Where
(m => m.DeclaringType == edmType))
2120
IEnumerable<MetadataProperty> extendedMemberProperties = member.MetadataProperties.
Where
(mdp => mdp.PropertyKind == PropertyKind.Extended);
System\Data\Services\Providers\ResourceType.cs (4)
321
List<ResourceProperty> key = rootType.Properties.
Where
(p => p.IsOfKind(ResourcePropertyKind.Key)).ToList();
351
ReadOnlyCollection<ResourceProperty> etag = new ReadOnlyCollection<ResourceProperty>(this.Properties.
Where
(p => p.IsOfKind(ResourcePropertyKind.ETag)).ToList());
1218
if (this.propertiesDeclaredOnThisType.
Where
(p => p.Name == rp.Name).FirstOrDefault() != null)
1226
if (this.propertiesDeclaredOnThisType.
Where
(p => p.IsOfKind(ResourcePropertyKind.Key)).FirstOrDefault() == null)
System\Data\Services\Serializers\MetadataSerializer.cs (3)
504
var currentEpmInfos = type.OwnEpmInfo.
Where
(e => e.SourcePath.Split('/').First() == resourceProperty.Name);
520
var currentEpmInfos = type.OwnEpmInfo.
Where
(e => e.SourcePath.Split('/').First() == resourceProperty.Name);
1146
foreach (ResourceProperty navigationProperty in resourceType.PropertiesDeclaredOnThisType.
Where
(p => p.TypeKind == ResourceTypeKind.EntityType))
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
128
SyndicationCategory category = item.Categories.
Where
(c => c.Scheme == XmlConstants.DataWebSchemeNamespace).FirstOrDefault();
225
SyndicationElementExtension properties = item.ElementExtensions.
Where
(p => p.OuterName == XmlConstants.AtomPropertiesElementName && p.OuterNamespace == XmlConstants.DataWebMetadataNamespace).FirstOrDefault();
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
793
foreach (ResourceProperty property in resourceType.Properties.
Where
(p => p.TypeKind == ResourceTypeKind.Primitive))
826
foreach (ResourceProperty property in resourceType.Properties.
Where
(p => p.TypeKind == ResourceTypeKind.Primitive))
System.Data.Services.Client (22)
parent\Server\System\Data\Services\Epm\EpmContentSerializerBase.cs (2)
147
segmentsToSerialize = targetSegment.SubSegments.
Where
(s => s.IsAttribute == true);
150
segmentsToSerialize = targetSegment.SubSegments.
Where
(s => s.IsAttribute == false);
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (1)
209
foreach (EpmTargetPathSegment childSegment in currentSegment.SubSegments.
Where
(s => !s.IsAttribute))
System\Data\Services\Client\ALinq\PathBox.cs (2)
53
return projectionPaths.
Where
(s => s.Length > 0).Select(s => s.ToString()).Distinct();
61
return expandPaths.
Where
(s => s.Length > 0).Select(s => s.ToString()).Distinct();
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
448
.
Where
(t => t.IsGenericParameter)
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
1760
member = properties.
Where
(property => property.GetGetMethod() == member).FirstOrDefault();
System\Data\Services\Client\ALinq\ResourceSetExpression.cs (1)
235
QueryOptionExpression old = this.sequenceQueryOptions.
Where
(o => o.GetType() == qoe.GetType()).FirstOrDefault();
System\Data\Services\Client\AtomMaterializer.cs (4)
1393
property = values.
Where
(v => v.Name == step).FirstOrDefault();
1479
var node = element.Nodes().
Where
(n => n.NodeType == XmlNodeType.Text || n.NodeType == XmlNodeType.SignificantWhitespace).FirstOrDefault();
1527
atomProperty = properties.
Where
(p => p.Name == propertyName).FirstOrDefault();
1549
atomProperty = properties.
Where
(p => p.Name == propertyName).FirstOrDefault();
System\Data\Services\Client\Binding\BindingGraph.cs (2)
693
return this.vertices.Keys.
Where
(filter).ToList();
763
return this.vertices.Values.
Where
(v => v.Color == VertexColor.White).ToList();
System\Data\Services\Client\Binding\BindingObserver.cs (1)
912
.
Where
(x => x.ParentEntity == currentEntity && x.State == EntityStates.Added))
System\Data\Services\Client\ClientType.cs (1)
265
Debug.Assert(this.KeyCount == this.Properties.
Where
(k => k.KeyProperty).Count(), "KeyCount mismatch");
System\Data\Services\Client\DataServiceContext.cs (5)
2139
return this.bindings.Values.
Where
(o => (o.Source == source) && (o.SourceProperty == sourceProperty));
2325
ClientType.ClientProperty[] keys = clientType.Properties.
Where
<ClientType.ClientProperty>(ClientType.ClientProperty.GetKeyProperty).ToArray();
2619
foreach (LinkDescriptor end in this.bindings.Values.
Where
(resource.IsRelatedEntity).ToList())
4147
.
Where
(o => o.IsModified && o.ChangeOrder != UInt32.MaxValue)
4212
foreach (EntityDescriptor box in this.ChangedEntries.
Where
(e => e.IsResource).Cast<EntityDescriptor>())
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
635
string[] names = (entryPath.
Where
(m => m.Member != null).Select(m => m.Member)).ToArray();
System.Data.Services.Design (8)
parent\Server\System\Data\Services\Epm\EpmHelper.cs (1)
217
IEnumerable<MetadataProperty> result = metadataExtendedProperties.
Where
(mdp => mdp.Name == extendedPropertyName);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
358
IEnumerable<MetadataProperty> extendedProperties = entityType.MetadataProperties.
Where
(mp => mp.PropertyKind == PropertyKind.Extended);
387
foreach (EdmMember member in entityType.Members.
Where
(m => m.DeclaringType == entityType))
390
IEnumerable<MetadataProperty> extendedMemberProperties = member.MetadataProperties.
Where
(mdp => mdp.PropertyKind == PropertyKind.Extended);
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (3)
736
if (this.GetSourceTypes().
Where
(x => x.BuiltInTypeKind == BuiltInTypeKind.EntityType).
Where
(x => ((EntityType)x).Name == eventArgs.BaseType.BaseType).Count() != 0)
846
.
Where
(x => x.BuiltInTypeKind == BuiltInTypeKind.EntitySet &&
System\Data\EntityModel\EntityClassGenerator.cs (1)
474
schemaElements.AddRange(dataServiceElement.Elements().
Where
(IsSchemaV2));
System.Runtime.DurableInstancing (5)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
257
return this.owners.Values.Select(weakReference => (InstanceOwner)weakReference.Target).
Where
(owner => owner != null).ToArray();
System\Runtime\PersistencePipeline.cs (4)
258
this.keys = new List<XName>(this.basis.
Where
(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Key));
270
this.values = new List<object>(this.basis.
Where
(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => value.Value.Value));
374
return this.basis.
Where
(value => value.Value.IsWriteOnly() == this.writeOnly).Select(value => new KeyValuePair<XName, object>(value.Key, value.Value.Value)).GetEnumerator();
407
this.pendingModules = this.pipeline.modules.
Where
(value => value.IsIOParticipant).ToArray();
System.ServiceModel (4)
System\ServiceModel\Description\WsdlHelper.cs (1)
226
IEnumerable<WsdlNS.ServiceDescription> contractWsdls = wsdls.
Where
(serviceDescription => serviceDescription.PortTypes.Count > 0);
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
170
foreach (var entry in this.cache.
Where
(pair => !pair.Value.IsAlive).ToList())
System\ServiceModel\Dispatcher\TaskExtensions.cs (1)
29
taskAsAsyncResultMethodInfo = typeof(System.Runtime.TaskExtensions).GetMethods().
Where
(m =>
System\ServiceModel\ServiceConfiguration.cs (1)
294
IEnumerable<ContractDescription> mostSpecificContracts = contracts.
Where
(contract
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
743
foreach (XmlSchemaElement derivedElement in context.schemaSet.GlobalElements.Values.OfType<XmlSchemaElement>().
Where
(e =>
System.Web (6)
HttpValueCollection.cs (1)
76
_keysAwaitingValidation = new HashSet<string>(Keys.Cast<string>().
Where
(KeyIsCandidateForValidation), StringComparer.OrdinalIgnoreCase);
ModelBinding\MutableObjectModelBinder.cs (1)
198
ModelValidator requiredValidator = ModelValidatorProviders.Providers.GetValidators(propertyMetadata, modelBindingExecutionContext).
Where
(v => v.IsRequired).FirstOrDefault();
ModelBinding\PrefixContainer.cs (1)
20
_sortedValues = values.
Where
(val => val != null).ToArray();
Security\AntiXss\CodeCharts\CodeChartHelper.cs (1)
19
range = range.
Where
(i => !exclusionFilter(i));
UI\WebControls\MenuRendererStandards.cs (1)
601
foreach (var style in _styles.
Where
(s => !s.Empty)) {
Util\QueryableUtility.cs (1)
21
return _methods.
Where
(m => m.Name == method).Contains(GetQueryableMethod(expression));
System.Web.DynamicData (11)
DynamicData\FilterRepeater.cs (1)
127
return Table.Columns.
Where
(c => IsFilterableColumn(c));
DynamicData\MetaColumn.cs (2)
653
var presentationLayerNotSpecified = uiHints.
Where
(a => String.IsNullOrEmpty(presentationLayerPropertyAccessor(a)));
654
var presentationLayerSpecified = uiHints.
Where
(a => !String.IsNullOrEmpty(presentationLayerPropertyAccessor(a)));
DynamicData\MetaModel.cs (1)
395
return Tables.
Where
(IsTableVisible).OrderBy(t => t.DisplayName).ToList();
DynamicData\MetaTable.cs (5)
223
_primaryKeyColumns = Columns.
Where
(c => c.IsPrimaryKey).ToList().AsReadOnly();
578
var serverSideColumns = Columns.
Where
(c => !c.IsCustomProperty).ToList();
640
return Columns.
Where
(c => IsFilterableColumn(c, Context.User))
648
return Columns.
Where
(c => c.Metadata.DisplayAttribute != null && !String.IsNullOrEmpty(c.Metadata.DisplayAttribute.GetGroupName()))
762
return Columns.
Where
(c => IsScaffoldColumn(c, mode, containerType))
DynamicData\ModelProviders\EFAssociationProvider.cs (2)
55
var primaryKeyNames = FromColumn.Table.Columns.
Where
(c => c.IsPrimaryKey).Select(c => c.Name);
72
foreach (ColumnProvider toEntityColumn in ToTable.Columns.
Where
(c => c.IsPrimaryKey)) {
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (3)
811
.
Where
(np => np.ToEndMember == end)
818
return (AssociationEndMember)end.DeclaringType.Members.
Where
(m => m != end).Single();
1055
foreach (var keyProperty in entityWrapper.Collection.AllPropertyDescriptors.Select(d => d.Column).OfType<EntityDataSourcePropertyColumn>().
Where
(c => c.IsKey))
System.Web.Extensions (5)
Compilation\WCFModel\MapFileLoader.cs (2)
330
var metadataFileNames = mapFile.MetadataList.Select(p => p.FileName).
Where
(p => !string.IsNullOrEmpty(p));
331
var extensionFileNames = mapFile.Extensions.Select(p => p.FileName).
Where
(p => !string.IsNullOrEmpty(p));
UI\WebControls\Dynamic.cs (3)
1418
Where
(m => m != null);
1460
Where
(m => IsApplicable(m, args)).
1464
Where
(m => applicable.All(n => m == n || IsBetterThan(args, m, n))).