Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / Update / Internal / EntitySetRetriever.cs / 1 / EntitySetRetriever.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Common.CommandTrees; using System.Data.Metadata.Edm; namespace System.Data.Mapping.Update.Internal { ////// Retrieves extents referenced in a mapping view /// internal class EntitySetRetriever : BasicExpressionVisitor { private List_entitySets; private EntitySetRetriever() { _entitySets = new List (); } /// /// Returns all extents referenced in the given expression tree. /// /// Tree to walk. ///Extents referenced in the tree. internal static IEnumerableGetEntitySets(DbExpression tree) { EntitySetRetriever retriever = new EntitySetRetriever(); if (null != tree) { tree.Accept(retriever); } return retriever._entitySets; } /// /// Adds visited extent to the list. /// /// Scan expression. public override void Visit(DbScanExpression e) { base.Visit(e); EntitySet entitySet = e.Target as EntitySet; if (null != entitySet) { _entitySets.Add(entitySet); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Data.Common.CommandTrees; using System.Data.Metadata.Edm; namespace System.Data.Mapping.Update.Internal { ////// Retrieves extents referenced in a mapping view /// internal class EntitySetRetriever : BasicExpressionVisitor { private List_entitySets; private EntitySetRetriever() { _entitySets = new List (); } /// /// Returns all extents referenced in the given expression tree. /// /// Tree to walk. ///Extents referenced in the tree. internal static IEnumerableGetEntitySets(DbExpression tree) { EntitySetRetriever retriever = new EntitySetRetriever(); if (null != tree) { tree.Accept(retriever); } return retriever._entitySets; } /// /// Adds visited extent to the list. /// /// Scan expression. public override void Visit(DbScanExpression e) { base.Visit(e); EntitySet entitySet = e.Target as EntitySet; if (null != entitySet) { _entitySets.Add(entitySet); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MailDefinitionBodyFileNameEditor.cs
- FormatSettings.cs
- HttpDictionary.cs
- ConnectorEditor.cs
- BitmapEffectGroup.cs
- SchemaImporterExtensionElement.cs
- StructuralType.cs
- GraphicsContainer.cs
- DmlSqlGenerator.cs
- PointLightBase.cs
- DiscardableAttribute.cs
- ResourceDefaultValueAttribute.cs
- base64Transforms.cs
- ObjectStateManager.cs
- Hyperlink.cs
- FamilyTypeface.cs
- OSFeature.cs
- MemberRelationshipService.cs
- UpdateTracker.cs
- QueryContinueDragEvent.cs
- CodeCastExpression.cs
- EntityDataSourceConfigureObjectContext.cs
- TCPClient.cs
- PackageRelationshipSelector.cs
- DiscoveryRequestHandler.cs
- SelectionHighlightInfo.cs
- Vector3DAnimationBase.cs
- OleDbErrorCollection.cs
- PatternMatcher.cs
- DbProviderFactories.cs
- StyleCollection.cs
- NGCPageContentCollectionSerializerAsync.cs
- SqlRecordBuffer.cs
- Part.cs
- SerializerDescriptor.cs
- SystemMulticastIPAddressInformation.cs
- ComponentSerializationService.cs
- _HelperAsyncResults.cs
- ClrPerspective.cs
- CFStream.cs
- SourceChangedEventArgs.cs
- DefaultAuthorizationContext.cs
- PackageFilter.cs
- ServicePointManager.cs
- SwitchAttribute.cs
- KnowledgeBase.cs
- ControlBuilder.cs
- DataException.cs
- TextRunCache.cs
- Separator.cs
- AspNetHostingPermission.cs
- XmlNavigatorStack.cs
- DataGridCell.cs
- ProcessHostMapPath.cs
- ServerValidateEventArgs.cs
- sapiproxy.cs
- BinaryWriter.cs
- PackWebRequest.cs
- SpanIndex.cs
- While.cs
- HelpEvent.cs
- ElementAction.cs
- GradientBrush.cs
- DataGridViewHitTestInfo.cs
- WorkflowOperationInvoker.cs
- XmlArrayItemAttributes.cs
- TabControl.cs
- MatrixAnimationBase.cs
- DataGridViewRowCancelEventArgs.cs
- XMLSchema.cs
- ModuleConfigurationInfo.cs
- SqlNodeAnnotations.cs
- StringDictionaryCodeDomSerializer.cs
- HyperLinkField.cs
- SearchForVirtualItemEventArgs.cs
- Utility.cs
- PipelineModuleStepContainer.cs
- JsonEncodingStreamWrapper.cs
- FixedBufferAttribute.cs
- PopupControlService.cs
- ExpressionPrefixAttribute.cs
- WeakReference.cs
- AffineTransform3D.cs
- DataBindingList.cs
- AssemblyInfo.cs
- TextBox.cs
- Speller.cs
- StorageEndPropertyMapping.cs
- ZipIOLocalFileBlock.cs
- DbCommandTree.cs
- SupportingTokenAuthenticatorSpecification.cs
- HitTestResult.cs
- SystemException.cs
- CompilerHelpers.cs
- WindowsToolbarAsMenu.cs
- IDataContractSurrogate.cs
- SupportsEventValidationAttribute.cs
- HtmlImage.cs
- ResourceSet.cs
- CookieProtection.cs