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
- WebPartConnectVerb.cs
- Pen.cs
- DocumentPageView.cs
- RadialGradientBrush.cs
- WebException.cs
- ComplexBindingPropertiesAttribute.cs
- XsltLibrary.cs
- DataBindEngine.cs
- PolyBezierSegment.cs
- CommandValueSerializer.cs
- BulletChrome.cs
- SourceElementsCollection.cs
- HotSpot.cs
- ParagraphVisual.cs
- _BasicClient.cs
- LinearKeyFrames.cs
- RemoteHelper.cs
- EventWaitHandle.cs
- IisTraceWebEventProvider.cs
- TimerElapsedEvenArgs.cs
- RegexCharClass.cs
- BasicCellRelation.cs
- FilterException.cs
- XslCompiledTransform.cs
- DSASignatureDeformatter.cs
- ListViewUpdateEventArgs.cs
- UserControl.cs
- BitStream.cs
- ConnectionStringsExpressionBuilder.cs
- WmlPhoneCallAdapter.cs
- CompressStream.cs
- UniformGrid.cs
- UidManager.cs
- MimeObjectFactory.cs
- PrintDocument.cs
- FullTextLine.cs
- SubMenuStyle.cs
- EventLogWatcher.cs
- TypeGeneratedEventArgs.cs
- TrackingStringDictionary.cs
- WindowsListBox.cs
- AffineTransform3D.cs
- FrameworkElementAutomationPeer.cs
- DataTableNewRowEvent.cs
- SessionEndingEventArgs.cs
- WSHttpSecurity.cs
- Facet.cs
- SerializerDescriptor.cs
- ArgumentException.cs
- QilTargetType.cs
- DbConnectionHelper.cs
- XmlEncodedRawTextWriter.cs
- ComplexTypeEmitter.cs
- InstanceCreationEditor.cs
- DataSet.cs
- FloaterBaseParaClient.cs
- Grant.cs
- ProtocolsSection.cs
- InternalCache.cs
- ConstraintConverter.cs
- LocationUpdates.cs
- ADRoleFactory.cs
- KeyConverter.cs
- ThicknessAnimationBase.cs
- XmlDataSourceView.cs
- ColumnMapTranslator.cs
- TreeIterators.cs
- ObjectContextServiceProvider.cs
- _ConnectionGroup.cs
- GlyphInfoList.cs
- BinaryKeyIdentifierClause.cs
- EventLogEntry.cs
- AccessedThroughPropertyAttribute.cs
- RenderDataDrawingContext.cs
- AsymmetricSignatureFormatter.cs
- AdCreatedEventArgs.cs
- MetaTable.cs
- DelegateSerializationHolder.cs
- SafeBitVector32.cs
- ListenerConnectionModeReader.cs
- ResponseBodyWriter.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CapabilitiesUse.cs
- TdsParserSessionPool.cs
- TemplatedWizardStep.cs
- CancellationScope.cs
- TypeKeyValue.cs
- StrictAndMessageFilter.cs
- ProgressBarRenderer.cs
- HybridDictionary.cs
- BasicKeyConstraint.cs
- MethodCallConverter.cs
- CalendarAutoFormatDialog.cs
- AppDomainFactory.cs
- ByteStreamMessageEncodingElement.cs
- WebBrowsableAttribute.cs
- SystemWebExtensionsSectionGroup.cs
- ViewKeyConstraint.cs
- HtmlTableRowCollection.cs
- DecoratedNameAttribute.cs