Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / QueryCacheEntry.cs / 1 / QueryCacheEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //----------------------------------------------------------------------------- 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 [....], [....] //----------------------------------------------------------------------------- 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
- FeatureSupport.cs
- LicenseContext.cs
- ArrayExtension.cs
- ZoomPercentageConverter.cs
- UIPermission.cs
- ResetableIterator.cs
- Quad.cs
- SoapMessage.cs
- ServiceCredentialsElement.cs
- TreeNodeCollection.cs
- WebPartConnectionsCloseVerb.cs
- Window.cs
- FormatVersion.cs
- IndicFontClient.cs
- ControlBuilder.cs
- ObjectViewFactory.cs
- TrustManagerMoreInformation.cs
- PromptStyle.cs
- RequestCache.cs
- Double.cs
- ConfigurationValue.cs
- SecurityManager.cs
- TabControlAutomationPeer.cs
- CacheAxisQuery.cs
- ToolStripPanelSelectionBehavior.cs
- NativeStructs.cs
- MetadataCache.cs
- Identity.cs
- ConfigurationStrings.cs
- EntityContainerEmitter.cs
- DBConcurrencyException.cs
- EventProviderTraceListener.cs
- OleDbError.cs
- InputDevice.cs
- _HelperAsyncResults.cs
- SortedList.cs
- VarRemapper.cs
- Constraint.cs
- SharedStream.cs
- XmlDeclaration.cs
- XmlArrayAttribute.cs
- _ProxyChain.cs
- CompilerGeneratedAttribute.cs
- KeyFrames.cs
- HtmlControlPersistable.cs
- XmlSerializerOperationFormatter.cs
- BooleanConverter.cs
- Version.cs
- wgx_render.cs
- OleDragDropHandler.cs
- SafeCertificateStore.cs
- SymmetricCryptoHandle.cs
- SchemaCreator.cs
- ToolStripContainerDesigner.cs
- XmlNullResolver.cs
- QuestionEventArgs.cs
- ExecutedRoutedEventArgs.cs
- GPStream.cs
- XslAst.cs
- VsPropertyGrid.cs
- TableLayoutSettings.cs
- SQLBytesStorage.cs
- ProfileGroupSettings.cs
- BuildProvider.cs
- PerspectiveCamera.cs
- FormsAuthenticationConfiguration.cs
- NetworkAddressChange.cs
- AccessedThroughPropertyAttribute.cs
- CaseExpr.cs
- CompositeCollection.cs
- MultiSelector.cs
- Scene3D.cs
- GiveFeedbackEvent.cs
- XmlSchemaObject.cs
- DecimalStorage.cs
- SourceChangedEventArgs.cs
- TemplateNameScope.cs
- UnsafeMethods.cs
- RegexFCD.cs
- RC2CryptoServiceProvider.cs
- HMACRIPEMD160.cs
- Decoder.cs
- StyleTypedPropertyAttribute.cs
- GroupItem.cs
- DateTimeFormatInfo.cs
- XmlWriterTraceListener.cs
- TransactionTraceIdentifier.cs
- SafeNativeMethods.cs
- FindResponse.cs
- FileInfo.cs
- ImportContext.cs
- FormatterConverter.cs
- Timer.cs
- DbConnectionStringCommon.cs
- ContainerVisual.cs
- TriState.cs
- ReverseComparer.cs
- BrowserCapabilitiesCodeGenerator.cs
- BitmapSource.cs
- ByteConverter.cs