Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TextPointerBase.cs
- PathSegmentCollection.cs
- typedescriptorpermission.cs
- MenuItemBinding.cs
- BCLDebug.cs
- XmlDigitalSignatureProcessor.cs
- Visual.cs
- AdornerDecorator.cs
- TemplateBuilder.cs
- ControlBuilder.cs
- WhitespaceRuleReader.cs
- AddInServer.cs
- _TransmitFileOverlappedAsyncResult.cs
- UniqueConstraint.cs
- UIElementParagraph.cs
- VariableQuery.cs
- AppDomainUnloadedException.cs
- DriveInfo.cs
- XmlLoader.cs
- ToolStripSplitButton.cs
- ListViewSortEventArgs.cs
- UrlMapping.cs
- PkcsUtils.cs
- SettingsPropertyIsReadOnlyException.cs
- PeerPresenceInfo.cs
- DataBindingHandlerAttribute.cs
- DbMetaDataColumnNames.cs
- Window.cs
- DataGridCell.cs
- TimeEnumHelper.cs
- EventLogEntry.cs
- SettingsBase.cs
- RoleBoolean.cs
- ProtocolsConfigurationHandler.cs
- ScriptManager.cs
- CheckBoxFlatAdapter.cs
- SecurityImpersonationBehavior.cs
- BevelBitmapEffect.cs
- TranslateTransform3D.cs
- ObjectSpanRewriter.cs
- _CommandStream.cs
- TimeoutTimer.cs
- TemplateBindingExpression.cs
- TraceSection.cs
- CollectionViewGroupRoot.cs
- updateconfighost.cs
- columnmapfactory.cs
- ByteRangeDownloader.cs
- ApplicationContext.cs
- xsdvalidator.cs
- Formatter.cs
- ReadWriteObjectLock.cs
- ElementMarkupObject.cs
- PropertyConverter.cs
- WinFormsSecurity.cs
- SystemDropShadowChrome.cs
- SocketPermission.cs
- WeakReferenceKey.cs
- ZoomingMessageFilter.cs
- NumberFormatInfo.cs
- ICspAsymmetricAlgorithm.cs
- TableDetailsRow.cs
- PropertyItem.cs
- ResourcesChangeInfo.cs
- SignatureHelper.cs
- ContainerParagraph.cs
- ToolStripContainer.cs
- CheckedPointers.cs
- SerializableAttribute.cs
- _OverlappedAsyncResult.cs
- OleDbDataAdapter.cs
- SHA384.cs
- ApplicationSecurityInfo.cs
- HashCodeCombiner.cs
- TableLayout.cs
- ProxyFragment.cs
- SdlChannelSink.cs
- MimeMapping.cs
- ThicknessKeyFrameCollection.cs
- Number.cs
- StylusPoint.cs
- RuntimeCompatibilityAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs
- BaseResourcesBuildProvider.cs
- ListControlActionList.cs
- Figure.cs
- AtomMaterializer.cs
- AnimationClock.cs
- SendingRequestEventArgs.cs
- ProxyElement.cs
- InfoCardArgumentException.cs
- RequestedSignatureDialog.cs
- EventSourceCreationData.cs
- FileDialog_Vista_Interop.cs
- DebuggerService.cs
- PnrpPeerResolver.cs
- GridViewSelectEventArgs.cs
- DoWorkEventArgs.cs
- EncodingInfo.cs
- DataGridViewHitTestInfo.cs