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
- SimpleTypeResolver.cs
- HiddenFieldPageStatePersister.cs
- CultureInfoConverter.cs
- IpcChannel.cs
- DependencySource.cs
- DispatcherExceptionEventArgs.cs
- GenericUriParser.cs
- AssemblyAttributes.cs
- PersonalizationProvider.cs
- DataSpaceManager.cs
- VoiceInfo.cs
- RuntimeWrappedException.cs
- CollectionTypeElement.cs
- UnsupportedPolicyOptionsException.cs
- GeneralTransform.cs
- DynamicResourceExtension.cs
- SoapAttributes.cs
- TagMapInfo.cs
- CheckedPointers.cs
- Animatable.cs
- Stroke.cs
- FullTextBreakpoint.cs
- BuildManager.cs
- XmlRawWriterWrapper.cs
- Sequence.cs
- DataGridPageChangedEventArgs.cs
- SoapIncludeAttribute.cs
- IMembershipProvider.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TextSerializer.cs
- EdmValidator.cs
- TypeConverterHelper.cs
- RedirectionProxy.cs
- DiscoveryOperationContextExtension.cs
- SqlDataSourceSelectingEventArgs.cs
- ScrollBar.cs
- WindowsTab.cs
- DbConnectionInternal.cs
- StringReader.cs
- BrowserDefinitionCollection.cs
- OleCmdHelper.cs
- Compiler.cs
- RawMouseInputReport.cs
- DataGridViewDesigner.cs
- StyleReferenceConverter.cs
- GridItem.cs
- RegisteredDisposeScript.cs
- TimestampInformation.cs
- AttachedPropertyBrowsableAttribute.cs
- ToolStripDropDownItem.cs
- BindingMAnagerBase.cs
- ValidationHelper.cs
- PropertyDescriptorComparer.cs
- Clause.cs
- VariantWrapper.cs
- TypeNameHelper.cs
- NotSupportedException.cs
- CacheSection.cs
- GridViewUpdateEventArgs.cs
- FloaterBaseParagraph.cs
- SelectionList.cs
- FormClosedEvent.cs
- SynchronizationContext.cs
- PagedControl.cs
- AddInControllerImpl.cs
- HandleTable.cs
- ToolStripControlHost.cs
- FragmentQuery.cs
- NetCodeGroup.cs
- RowUpdatingEventArgs.cs
- _MultipleConnectAsync.cs
- SqlConnection.cs
- SubstitutionList.cs
- Table.cs
- SqlWebEventProvider.cs
- DataSourceHelper.cs
- CookielessHelper.cs
- Mappings.cs
- X509CertificateInitiatorClientCredential.cs
- SqlNodeAnnotations.cs
- TextRunCache.cs
- DependencyPropertyChangedEventArgs.cs
- WpfWebRequestHelper.cs
- XmlSchemaSimpleContentExtension.cs
- DragDeltaEventArgs.cs
- XmlLanguage.cs
- DescendantQuery.cs
- CollectionViewGroup.cs
- User.cs
- SoapFault.cs
- DataGridColumn.cs
- SoapCommonClasses.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ClientFactory.cs
- ZipIOModeEnforcingStream.cs
- UnsafeNativeMethods.cs
- JournalEntryStack.cs
- RemotingServices.cs
- HwndKeyboardInputProvider.cs
- XmlTextWriter.cs