Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / QueryCacheEntry.cs / 1305376 / QueryCacheEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- namespace System.Data.Common.QueryCache { using System; using System.Collections.Generic; using System.Text; using System.Data.Common; using System.Diagnostics; ////// Represents the abstract base class for all cache entry values in the query cache /// internal abstract class QueryCacheEntry { #region Fields ////// querycachekey for this entry /// readonly private QueryCacheKey _queryCacheKey; ////// strong reference to the target object /// readonly protected object _target; #endregion #region Constructors ////// cache entry constructor /// /// /// protected QueryCacheEntry( QueryCacheKey queryCacheKey, object target ) { _queryCacheKey = queryCacheKey; _target = target; } #endregion #region Methods and Properties ////// returns the target dbcommand as strong type /// ///internal virtual object GetTarget() { return _target; } /// /// Returns the query cache key /// internal QueryCacheKey QueryCacheKey { get { return _queryCacheKey; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- namespace System.Data.Common.QueryCache { using System; using System.Collections.Generic; using System.Text; using System.Data.Common; using System.Diagnostics; ////// Represents the abstract base class for all cache entry values in the query cache /// internal abstract class QueryCacheEntry { #region Fields ////// querycachekey for this entry /// readonly private QueryCacheKey _queryCacheKey; ////// strong reference to the target object /// readonly protected object _target; #endregion #region Constructors ////// cache entry constructor /// /// /// protected QueryCacheEntry( QueryCacheKey queryCacheKey, object target ) { _queryCacheKey = queryCacheKey; _target = target; } #endregion #region Methods and Properties ////// returns the target dbcommand as strong type /// ///internal virtual object GetTarget() { return _target; } /// /// Returns the query cache key /// internal QueryCacheKey QueryCacheKey { get { return _queryCacheKey; } } #endregion } } // 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
- HwndSourceParameters.cs
- PerformanceCounterPermissionEntryCollection.cs
- ProcessExitedException.cs
- Pair.cs
- ConfigurationStrings.cs
- DelayedRegex.cs
- Path.cs
- XmlSchemaAttribute.cs
- SafeSystemMetrics.cs
- DbConvert.cs
- NumberFormatter.cs
- FieldAccessException.cs
- ImmComposition.cs
- embossbitmapeffect.cs
- SqlCachedBuffer.cs
- PolyBezierSegmentFigureLogic.cs
- OleDbPermission.cs
- RuntimeTrackingProfile.cs
- UserPreferenceChangedEventArgs.cs
- SR.cs
- ApplicationSecurityManager.cs
- TypedDataSetSchemaImporterExtension.cs
- ToolStripSettings.cs
- PolicyChain.cs
- ApplicationDirectoryMembershipCondition.cs
- SelectionRangeConverter.cs
- ISFClipboardData.cs
- XamlStyleSerializer.cs
- ImmutableObjectAttribute.cs
- XmlSerializationReader.cs
- Header.cs
- ConnectivityStatus.cs
- SocketInformation.cs
- AlgoModule.cs
- NumericUpDownAcceleration.cs
- WorkflowExecutor.cs
- Stylesheet.cs
- Parallel.cs
- ComponentResourceManager.cs
- SqlConnectionString.cs
- WebPartConnectionsEventArgs.cs
- FixedSOMTableRow.cs
- VersionedStream.cs
- DynamicAttribute.cs
- AdditionalEntityFunctions.cs
- BufferedStream.cs
- StreamInfo.cs
- ConnectionStringSettings.cs
- XmlAttributeCollection.cs
- AlgoModule.cs
- XPathNavigator.cs
- Transform.cs
- CheckBox.cs
- InfoCardKeyedHashAlgorithm.cs
- EntityDataSourceWrapperCollection.cs
- RangeValidator.cs
- securitymgrsite.cs
- UriTemplateTrieNode.cs
- ToolStripContainer.cs
- DebugController.cs
- ToolStripItemCollection.cs
- ComponentResourceKeyConverter.cs
- FakeModelItemImpl.cs
- ThreadPool.cs
- MenuCommand.cs
- MDIControlStrip.cs
- WCFServiceClientProxyGenerator.cs
- HttpStreamFormatter.cs
- Compiler.cs
- AttributeCallbackBuilder.cs
- DataGridViewDataConnection.cs
- XmlEventCache.cs
- XmlILIndex.cs
- ISAPIWorkerRequest.cs
- CompoundFileStorageReference.cs
- NetNamedPipeBindingElement.cs
- XmlSchemaSet.cs
- InboundActivityHelper.cs
- PngBitmapDecoder.cs
- WindowsEditBoxRange.cs
- WebControlParameterProxy.cs
- VectorAnimationBase.cs
- Timer.cs
- BuilderElements.cs
- AssociationSetEnd.cs
- DetailsViewInsertEventArgs.cs
- CustomAttribute.cs
- DesignerDeviceConfig.cs
- HostProtectionException.cs
- XmlAttribute.cs
- rsa.cs
- ValueQuery.cs
- WebExceptionStatus.cs
- PageParser.cs
- WebPartRestoreVerb.cs
- RuntimeHelpers.cs
- UpdateTracker.cs
- ObjectItemNoOpAssemblyLoader.cs
- XmlSchemaException.cs
- NGCSerializationManager.cs