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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringAttributeCollection.cs
- ImagingCache.cs
- ConnectionOrientedTransportChannelListener.cs
- PrintPreviewGraphics.cs
- Polyline.cs
- InvokeBinder.cs
- SqlParameterCollection.cs
- SendReply.cs
- Constants.cs
- DataGridViewHitTestInfo.cs
- OleDbMetaDataFactory.cs
- FolderBrowserDialog.cs
- ToolStripGrip.cs
- StringAnimationUsingKeyFrames.cs
- Single.cs
- NativeObjectSecurity.cs
- ScriptResourceDefinition.cs
- DataContractSerializerSection.cs
- SqlMethodAttribute.cs
- ScopelessEnumAttribute.cs
- OleDbFactory.cs
- Monitor.cs
- XPathNavigatorKeyComparer.cs
- CodeIndexerExpression.cs
- WsdlWriter.cs
- HttpPostServerProtocol.cs
- BindingCompleteEventArgs.cs
- DynamicEntity.cs
- CodeAssignStatement.cs
- CodeGeneratorOptions.cs
- ResourceCategoryAttribute.cs
- Evaluator.cs
- BindingOperations.cs
- PrintPreviewControl.cs
- SignatureHelper.cs
- XsdValidatingReader.cs
- ClientConfigPaths.cs
- Html32TextWriter.cs
- DuplicateWaitObjectException.cs
- ParameterCollection.cs
- WindowsPrincipal.cs
- AdRotator.cs
- EncoderBestFitFallback.cs
- LinearKeyFrames.cs
- BitStream.cs
- Guid.cs
- EntityDataSourceWizardForm.cs
- Empty.cs
- TreeViewImageIndexConverter.cs
- Internal.cs
- DefaultHttpHandler.cs
- ExceptionRoutedEventArgs.cs
- FillErrorEventArgs.cs
- FamilyTypefaceCollection.cs
- EncodingNLS.cs
- DbProviderFactoriesConfigurationHandler.cs
- EntityViewGenerationAttribute.cs
- XmlAutoDetectWriter.cs
- WindowsSecurityTokenAuthenticator.cs
- StylusShape.cs
- AuthenticationModulesSection.cs
- mansign.cs
- ApplicationServiceManager.cs
- DesignTimeValidationFeature.cs
- FieldCollectionEditor.cs
- externdll.cs
- MessagePropertyFilter.cs
- FullTextState.cs
- SystemGatewayIPAddressInformation.cs
- HandlerBase.cs
- ExpressionPrinter.cs
- Transactions.cs
- RequestCachePolicyConverter.cs
- ServiceRouteHandler.cs
- AsymmetricSignatureDeformatter.cs
- JournalNavigationScope.cs
- SqlEnums.cs
- MeshGeometry3D.cs
- SrgsRuleRef.cs
- XmlHelper.cs
- MultiViewDesigner.cs
- UInt16Storage.cs
- ExpressionWriter.cs
- TextAnchor.cs
- filewebrequest.cs
- ListSortDescriptionCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- XmlQueryStaticData.cs
- nulltextnavigator.cs
- ForceCopyBuildProvider.cs
- AttributeParameterInfo.cs
- ExpressionParser.cs
- HostingEnvironmentException.cs
- TextParagraphProperties.cs
- CheckoutException.cs
- StringInfo.cs
- ScrollBarRenderer.cs
- Ref.cs
- SoapMessage.cs
- TableRowCollection.cs