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
- ConfigUtil.cs
- Helpers.cs
- METAHEADER.cs
- BrowserTree.cs
- InteropBitmapSource.cs
- NativeMethods.cs
- BooleanKeyFrameCollection.cs
- DataDocumentXPathNavigator.cs
- VersionPair.cs
- InternalPermissions.cs
- CacheEntry.cs
- ImageBrush.cs
- FormatConvertedBitmap.cs
- TypeElement.cs
- XsdCachingReader.cs
- SuppressIldasmAttribute.cs
- HostSecurityManager.cs
- QueryResponse.cs
- RequestTimeoutManager.cs
- MiniModule.cs
- IndexerNameAttribute.cs
- RotateTransform.cs
- UIInitializationException.cs
- SystemParameters.cs
- StylusPointDescription.cs
- namescope.cs
- FileUtil.cs
- Gdiplus.cs
- GridViewHeaderRowPresenter.cs
- StringInfo.cs
- FixedHighlight.cs
- DirectoryObjectSecurity.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- DataGridToolTip.cs
- XmlLinkedNode.cs
- TextElementCollection.cs
- NameSpaceEvent.cs
- Point.cs
- TextContainer.cs
- TextRenderingModeValidation.cs
- TextOutput.cs
- DeploymentSection.cs
- MarkupCompilePass2.cs
- VariableQuery.cs
- XamlStream.cs
- EncoderReplacementFallback.cs
- DiffuseMaterial.cs
- ReflectPropertyDescriptor.cs
- DurableInstancingOptions.cs
- TextPenaltyModule.cs
- ActionFrame.cs
- TypeForwardedFromAttribute.cs
- CodePageEncoding.cs
- LayoutEngine.cs
- ResourceDescriptionAttribute.cs
- TextReader.cs
- ValidationErrorCollection.cs
- ComMethodElement.cs
- ToolStripSplitButton.cs
- PaintValueEventArgs.cs
- DummyDataSource.cs
- ConstraintCollection.cs
- ResourceExpressionBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- __Filters.cs
- XmlText.cs
- RSAPKCS1SignatureDeformatter.cs
- TagPrefixInfo.cs
- TableNameAttribute.cs
- WebConvert.cs
- NullableDecimalMinMaxAggregationOperator.cs
- _SSPIWrapper.cs
- DbgCompiler.cs
- XmlSchemaInferenceException.cs
- SocketElement.cs
- DynamicEntity.cs
- latinshape.cs
- SelectedGridItemChangedEvent.cs
- ListItemCollection.cs
- SqlDataRecord.cs
- UnsafeNativeMethods.cs
- UInt64Storage.cs
- InstanceKeyView.cs
- DataControlPagerLinkButton.cs
- RadioButtonAutomationPeer.cs
- HttpDebugHandler.cs
- VarRemapper.cs
- XamlSerializer.cs
- CheckBoxList.cs
- ReadWriteControlDesigner.cs
- PasswordDeriveBytes.cs
- RegexMatchCollection.cs
- VirtualizingPanel.cs
- Monitor.cs
- SafeNativeMemoryHandle.cs
- XmlSchemaExporter.cs
- ExtentKey.cs
- HtmlShim.cs
- RuntimeEnvironment.cs
- ComponentChangedEvent.cs