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
- FixedSOMTableRow.cs
- _RegBlobWebProxyDataBuilder.cs
- HelpHtmlBuilder.cs
- ConstructorExpr.cs
- AssemblyName.cs
- ListBase.cs
- HwndSourceKeyboardInputSite.cs
- ExceptionTrace.cs
- StateRuntime.cs
- WorkflowOperationFault.cs
- SynchronizationContext.cs
- DetailsView.cs
- TypeViewSchema.cs
- CommandManager.cs
- ConnectionManagementElement.cs
- DateTimeConverter2.cs
- AutomationElementIdentifiers.cs
- WebReferenceCollection.cs
- StateMachineWorkflow.cs
- EventBookmark.cs
- Nullable.cs
- DispatcherHooks.cs
- StyleXamlParser.cs
- ObjectDataSourceSelectingEventArgs.cs
- PlatformCulture.cs
- SchemaComplexType.cs
- BaseServiceProvider.cs
- TreeNode.cs
- RegexNode.cs
- MergePropertyDescriptor.cs
- ToolStripTextBox.cs
- ClientRuntimeConfig.cs
- PolicyImporterElement.cs
- FragmentQueryKB.cs
- ImageSourceTypeConverter.cs
- EditBehavior.cs
- ObjectConverter.cs
- GridViewDeleteEventArgs.cs
- SettingsContext.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EventLogTraceListener.cs
- ObjectPersistData.cs
- GeneralTransformGroup.cs
- OdbcConnectionOpen.cs
- HitTestDrawingContextWalker.cs
- MenuItemBinding.cs
- XPathBuilder.cs
- DelayedRegex.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlElementList.cs
- AssemblyUtil.cs
- WebControlsSection.cs
- _SSPIWrapper.cs
- EditorServiceContext.cs
- ResolveCriteriaApril2005.cs
- DesignerActionVerbList.cs
- GenericAuthenticationEventArgs.cs
- DataSourceSelectArguments.cs
- CatalogZone.cs
- ConnectionPointCookie.cs
- EmbeddedMailObject.cs
- SystemIPInterfaceProperties.cs
- VoiceChangeEventArgs.cs
- UDPClient.cs
- XmlComment.cs
- SortedDictionary.cs
- Root.cs
- TextDataBindingHandler.cs
- ImageListStreamer.cs
- SchemaImporterExtensionElementCollection.cs
- ComponentResourceKeyConverter.cs
- MdImport.cs
- WeakReference.cs
- PopupRootAutomationPeer.cs
- JsonDeserializer.cs
- NativeMethods.cs
- MouseCaptureWithinProperty.cs
- DataGridViewRowHeaderCell.cs
- ProfilePropertySettings.cs
- ContentPosition.cs
- Int32CollectionConverter.cs
- CompositionTarget.cs
- RegistryKey.cs
- HttpFileCollection.cs
- RichTextBoxDesigner.cs
- RuleSettingsCollection.cs
- InstalledFontCollection.cs
- SelectionGlyph.cs
- PageCatalogPartDesigner.cs
- UriExt.cs
- HttpDebugHandler.cs
- GrammarBuilderBase.cs
- TableItemStyle.cs
- SafeFileMappingHandle.cs
- InfoCardArgumentException.cs
- EventProvider.cs
- FileVersionInfo.cs
- JsonWriter.cs
- RectAnimationUsingKeyFrames.cs
- UntrustedRecipientException.cs