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
- DataSet.cs
- ExtentKey.cs
- HtmlUtf8RawTextWriter.cs
- CultureInfo.cs
- ServiceDescription.cs
- SubclassTypeValidatorAttribute.cs
- SmiContextFactory.cs
- RadioButtonRenderer.cs
- ExecutedRoutedEventArgs.cs
- Win32KeyboardDevice.cs
- StrokeCollection2.cs
- SEHException.cs
- CodeTypeOfExpression.cs
- UnsafeNativeMethods.cs
- InstancePersistenceCommand.cs
- InstancePersistenceContext.cs
- OleAutBinder.cs
- TypeNameParser.cs
- PersonalizationStateInfoCollection.cs
- AsyncOperationManager.cs
- DecimalKeyFrameCollection.cs
- XmlSchemaInclude.cs
- LicFileLicenseProvider.cs
- UpdatePanelTriggerCollection.cs
- WebPartsPersonalization.cs
- DataTableMapping.cs
- SafeNativeMethods.cs
- TransformerTypeCollection.cs
- Input.cs
- XmlNodeComparer.cs
- RegularExpressionValidator.cs
- DataSvcMapFile.cs
- CheckBoxFlatAdapter.cs
- QilLoop.cs
- DataRelationPropertyDescriptor.cs
- StorageFunctionMapping.cs
- Binding.cs
- XmlAttributeHolder.cs
- Bitmap.cs
- TreeNodeBinding.cs
- OdbcErrorCollection.cs
- DataSourceConverter.cs
- SchemaElement.cs
- SiteMapDataSource.cs
- DrawingContextFlattener.cs
- AdapterDictionary.cs
- ResourceReferenceKeyNotFoundException.cs
- InlineUIContainer.cs
- CachedCompositeFamily.cs
- MailBnfHelper.cs
- ArrayConverter.cs
- CodeTypeReferenceCollection.cs
- Size.cs
- CodeExporter.cs
- Journal.cs
- BaseProcessor.cs
- PeerNearMe.cs
- SmiTypedGetterSetter.cs
- Axis.cs
- AddInAttribute.cs
- Message.cs
- DataRowCollection.cs
- DisposableCollectionWrapper.cs
- HttpCapabilitiesEvaluator.cs
- ServicePoint.cs
- AndAlso.cs
- ReferenceEqualityComparer.cs
- DataMemberFieldEditor.cs
- SpecialNameAttribute.cs
- WebPartExportVerb.cs
- Figure.cs
- SafeLibraryHandle.cs
- TreeNode.cs
- DataGridView.cs
- ResourceAttributes.cs
- TypeLibConverter.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- HttpConfigurationSystem.cs
- CacheDependency.cs
- ChangeNode.cs
- TextPatternIdentifiers.cs
- SafeCryptHandles.cs
- NetStream.cs
- SQLBytesStorage.cs
- CompareValidator.cs
- InstanceHandleReference.cs
- CodeEntryPointMethod.cs
- TreeNodeSelectionProcessor.cs
- ParameterEditorUserControl.cs
- DesignerTextViewAdapter.cs
- AssemblyFilter.cs
- SchemaTableColumn.cs
- MachineKeySection.cs
- SyndicationPerson.cs
- WebPartDisplayMode.cs
- SSmlParser.cs
- Transform3DCollection.cs
- DeviceContexts.cs
- DataTablePropertyDescriptor.cs
- SessionViewState.cs