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
- SoapTypeAttribute.cs
- OdbcConnectionStringbuilder.cs
- DrawingGroup.cs
- WebEventTraceProvider.cs
- PropertyMap.cs
- FocusManager.cs
- Model3DCollection.cs
- SafeLibraryHandle.cs
- KeyedHashAlgorithm.cs
- EnumMember.cs
- DnsPermission.cs
- xml.cs
- UrlMappingsModule.cs
- DynamicDocumentPaginator.cs
- Selector.cs
- ResolvedKeyFrameEntry.cs
- FormsAuthenticationCredentials.cs
- DataContractJsonSerializer.cs
- HtmlUtf8RawTextWriter.cs
- PipeException.cs
- ImageSourceValueSerializer.cs
- RuntimeWrappedException.cs
- WorkerRequest.cs
- TemplateBamlTreeBuilder.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- PreDigestedSignedInfo.cs
- DnsPermission.cs
- FormsAuthenticationCredentials.cs
- CorrelationQueryBehavior.cs
- TransformDescriptor.cs
- TypeUtil.cs
- FlowDocumentPage.cs
- PkcsMisc.cs
- ClassHandlersStore.cs
- SpecularMaterial.cs
- InputLanguageCollection.cs
- SmtpReplyReader.cs
- XAMLParseException.cs
- StyleCollection.cs
- CounterCreationData.cs
- ToolTipService.cs
- RepeaterDataBoundAdapter.cs
- OracleDataReader.cs
- WmlValidationSummaryAdapter.cs
- ISAPIRuntime.cs
- Calendar.cs
- BoundField.cs
- Odbc32.cs
- BypassElement.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AggregateNode.cs
- TargetException.cs
- XmlArrayItemAttribute.cs
- MatrixCamera.cs
- Expressions.cs
- ResolveDuplexAsyncResult.cs
- FilterException.cs
- ADConnectionHelper.cs
- ImageFormatConverter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- HttpHeaderCollection.cs
- WorkflowPrinting.cs
- GridViewColumnCollection.cs
- SessionStateContainer.cs
- Double.cs
- ItemsPresenter.cs
- NotFiniteNumberException.cs
- BuildProviderAppliesToAttribute.cs
- _FtpDataStream.cs
- EncodingDataItem.cs
- FileStream.cs
- EventItfInfo.cs
- LinqDataSourceStatusEventArgs.cs
- TemplateFactory.cs
- PersonalizablePropertyEntry.cs
- WebPartDescriptionCollection.cs
- VScrollBar.cs
- Rectangle.cs
- LogicalExpressionTypeConverter.cs
- LineBreak.cs
- ConfigurationErrorsException.cs
- HashLookup.cs
- MULTI_QI.cs
- SoapMessage.cs
- Publisher.cs
- XmlMembersMapping.cs
- ToolstripProfessionalRenderer.cs
- FontUnit.cs
- HuffmanTree.cs
- NonBatchDirectoryCompiler.cs
- SchemaElement.cs
- ClientEventManager.cs
- ControlsConfig.cs
- InlineCollection.cs
- CodeDOMProvider.cs
- SqlHelper.cs
- DtdParser.cs
- DataGridViewCellStyle.cs
- X509ChainElement.cs
- DataStorage.cs