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
- NameNode.cs
- WebColorConverter.cs
- ConfigXmlCDataSection.cs
- RemoteHelper.cs
- HMACSHA256.cs
- AstNode.cs
- RectAnimation.cs
- UpdateRecord.cs
- ServiceDescriptions.cs
- DataGridViewAdvancedBorderStyle.cs
- ObjectResult.cs
- RegistryKey.cs
- AliasGenerator.cs
- XmlChildEnumerator.cs
- ValueChangedEventManager.cs
- PrimitiveCodeDomSerializer.cs
- EventLogTraceListener.cs
- StreamAsIStream.cs
- ControlCollection.cs
- AsyncResult.cs
- WinEventQueueItem.cs
- DurationConverter.cs
- XsdCachingReader.cs
- ContentType.cs
- _UncName.cs
- TdsParameterSetter.cs
- KnownBoxes.cs
- ConfigurationLocationCollection.cs
- ProcessManager.cs
- OdbcUtils.cs
- RequestQueue.cs
- AggregateNode.cs
- CodeGenerator.cs
- RegexGroupCollection.cs
- PrintSystemException.cs
- ThicknessAnimationBase.cs
- ObjectListItem.cs
- RevocationPoint.cs
- CornerRadiusConverter.cs
- webbrowsersite.cs
- BinaryWriter.cs
- HttpListenerPrefixCollection.cs
- Win32MouseDevice.cs
- PartitionedDataSource.cs
- WizardStepBase.cs
- FormatVersion.cs
- DecimalFormatter.cs
- SqlRemoveConstantOrderBy.cs
- ComboBoxAutomationPeer.cs
- PageClientProxyGenerator.cs
- ToggleButton.cs
- SelectorItemAutomationPeer.cs
- TypedDataSetSchemaImporterExtension.cs
- MenuScrollingVisibilityConverter.cs
- GeneralTransform3D.cs
- TypeDelegator.cs
- PersistChildrenAttribute.cs
- NumberEdit.cs
- SafeUserTokenHandle.cs
- Error.cs
- TemplateAction.cs
- ClientBuildManager.cs
- bidPrivateBase.cs
- HttpListenerResponse.cs
- DrawingCollection.cs
- HttpResponseInternalWrapper.cs
- BasicExpandProvider.cs
- ServiceOperationParameter.cs
- safelink.cs
- DeploymentSection.cs
- DiagnosticTrace.cs
- SwitchAttribute.cs
- PrivilegedConfigurationManager.cs
- EdmValidator.cs
- CompositeKey.cs
- UIntPtr.cs
- rsa.cs
- ActivityMarkupSerializationProvider.cs
- _Win32.cs
- PartialTrustVisibleAssemblyCollection.cs
- ChangeNode.cs
- MaskedTextBoxDesignerActionList.cs
- ReadWriteObjectLock.cs
- DataGridPagerStyle.cs
- UdpConstants.cs
- EntityViewContainer.cs
- ImplicitInputBrush.cs
- RIPEMD160Managed.cs
- DesignConnectionCollection.cs
- XmlSchemaCollection.cs
- AspNetHostingPermission.cs
- ObjectPropertyMapping.cs
- EntitySqlException.cs
- ArgumentValidation.cs
- Part.cs
- ProfilePropertyNameValidator.cs
- ComContractElementCollection.cs
- SHA384Managed.cs
- XmlSerializerAssemblyAttribute.cs
- SchemaImporterExtensionElementCollection.cs