Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / CommandTrees / Internal / ParameterRetriever.cs / 1305376 / ParameterRetriever.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Globalization; using System.Data.Common; using System.Data.Metadata.Edm; using System.Linq; using System.Diagnostics; namespace System.Data.Common.CommandTrees.Internal { internal sealed class ParameterRetriever : BasicCommandTreeVisitor { private readonly DictionaryparamMappings = new Dictionary (); private ParameterRetriever() { } internal static System.Collections.ObjectModel.ReadOnlyCollection GetParameters(DbCommandTree tree) { Debug.Assert(tree != null, "Ensure command tree is non-null before calling ParamterRetriever.GetParameters"); ParameterRetriever retriever = new ParameterRetriever(); retriever.VisitCommandTree(tree); return retriever.paramMappings.Values.ToList().AsReadOnly(); } public override void Visit(DbParameterReferenceExpression expression) { Debug.Assert(expression != null, "Command tree subexpressions should never be null"); this.paramMappings[expression.ParameterName] = expression; } } } // 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
- PointHitTestParameters.cs
- DataPagerFieldCollection.cs
- TextBreakpoint.cs
- DPAPIProtectedConfigurationProvider.cs
- SqlResolver.cs
- PageFunction.cs
- SqlDataRecord.cs
- BinaryQueryOperator.cs
- OdbcParameter.cs
- PersonalizationProvider.cs
- WorkflowQueueInfo.cs
- _CacheStreams.cs
- CursorInteropHelper.cs
- ControllableStoryboardAction.cs
- SHA256Cng.cs
- CatalogZoneBase.cs
- TokenBasedSet.cs
- XsltContext.cs
- ColumnWidthChangedEvent.cs
- CursorInteropHelper.cs
- XamlGridLengthSerializer.cs
- baseshape.cs
- EntityCommandCompilationException.cs
- Rijndael.cs
- TypedTableBase.cs
- DataGridViewIntLinkedList.cs
- BasicExpandProvider.cs
- infer.cs
- ProcessModelSection.cs
- _ListenerRequestStream.cs
- Switch.cs
- GridViewUpdateEventArgs.cs
- HtmlShimManager.cs
- ConvertersCollection.cs
- TraceContextRecord.cs
- TCPClient.cs
- UIElementParaClient.cs
- TrustSection.cs
- FillErrorEventArgs.cs
- ConstraintConverter.cs
- grammarelement.cs
- _OverlappedAsyncResult.cs
- SecurityResources.cs
- elementinformation.cs
- UnionCodeGroup.cs
- ServiceAuthorizationManager.cs
- COM2Properties.cs
- UidManager.cs
- DialogBaseForm.cs
- CroppedBitmap.cs
- DataGridViewBindingCompleteEventArgs.cs
- SecurityKeyEntropyMode.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- InputLanguageEventArgs.cs
- DataServiceExpressionVisitor.cs
- ResourcePool.cs
- OAVariantLib.cs
- ExpressionEditorAttribute.cs
- Image.cs
- InvalidOleVariantTypeException.cs
- ManagementObjectSearcher.cs
- AttributedMetaModel.cs
- DelegateSerializationHolder.cs
- PartialCachingAttribute.cs
- Parameter.cs
- GuidTagList.cs
- Menu.cs
- OletxTransactionHeader.cs
- BreakRecordTable.cs
- ConnectionPoint.cs
- ValidationSummary.cs
- DataColumnPropertyDescriptor.cs
- bidPrivateBase.cs
- HuffModule.cs
- NativeWindow.cs
- FormViewInsertedEventArgs.cs
- EditorAttribute.cs
- BindingNavigator.cs
- WebPartEventArgs.cs
- XmlLinkedNode.cs
- ApplicationTrust.cs
- UIElement.cs
- DataBindingExpressionBuilder.cs
- XappLauncher.cs
- DesignColumnCollection.cs
- TreeNodeSelectionProcessor.cs
- cryptoapiTransform.cs
- CqlIdentifiers.cs
- DbUpdateCommandTree.cs
- SerializationSectionGroup.cs
- InstanceKeyCompleteException.cs
- SimpleRecyclingCache.cs
- PingOptions.cs
- HMAC.cs
- KeyInterop.cs
- SystemIPInterfaceStatistics.cs
- TemplateEditingFrame.cs
- TraceFilter.cs
- SqlCacheDependencyDatabase.cs
- RadioButtonAutomationPeer.cs