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
- DataReaderContainer.cs
- StateRuntime.cs
- TransactionScope.cs
- AddInProcess.cs
- KerberosTokenFactoryCredential.cs
- RenderingBiasValidation.cs
- XmlSerializerOperationFormatter.cs
- XPathEmptyIterator.cs
- UnsignedPublishLicense.cs
- DefinitionUpdate.cs
- columnmapkeybuilder.cs
- DetailsViewInsertEventArgs.cs
- DrawingDrawingContext.cs
- UInt32.cs
- DesignerDeviceConfig.cs
- Polyline.cs
- Rijndael.cs
- Tracking.cs
- StreamResourceInfo.cs
- CategoryAttribute.cs
- CommonRemoteMemoryBlock.cs
- XmlSchemaComplexContentExtension.cs
- JulianCalendar.cs
- EventRecord.cs
- NetworkInformationException.cs
- COM2PictureConverter.cs
- SessionEndedEventArgs.cs
- TreeViewBindingsEditor.cs
- StateInitializationDesigner.cs
- PropertyFilterAttribute.cs
- ErrorWrapper.cs
- newinstructionaction.cs
- DeleteIndexBinder.cs
- FileLevelControlBuilderAttribute.cs
- State.cs
- SystemSounds.cs
- OutputCacheSettings.cs
- VectorValueSerializer.cs
- CodeExpressionCollection.cs
- PreviewPrintController.cs
- PlainXmlDeserializer.cs
- KnownIds.cs
- MetaTable.cs
- PersistenceTypeAttribute.cs
- ViewValidator.cs
- EdmType.cs
- WsatConfiguration.cs
- ResourceWriter.cs
- AnimatedTypeHelpers.cs
- DebugControllerThread.cs
- HttpApplication.cs
- DependencyPropertyAttribute.cs
- SessionStateSection.cs
- MailSettingsSection.cs
- DoubleLinkList.cs
- XmlReader.cs
- CommonObjectSecurity.cs
- CompilerErrorCollection.cs
- RectangleGeometry.cs
- RTLAwareMessageBox.cs
- Menu.cs
- XPathChildIterator.cs
- Item.cs
- TextFormatterContext.cs
- BasicBrowserDialog.cs
- AttachInfo.cs
- Menu.cs
- AssemblyUtil.cs
- EmbeddedMailObject.cs
- StylusButton.cs
- ChannelSinkStacks.cs
- _SafeNetHandles.cs
- CheckedPointers.cs
- WebPartConnectionsConnectVerb.cs
- NavigateEvent.cs
- SafeRegistryHandle.cs
- GeometryHitTestResult.cs
- SynchronizationLockException.cs
- SrgsItemList.cs
- LookupNode.cs
- Floater.cs
- SqlResolver.cs
- CodeTypeMemberCollection.cs
- GlyphTypeface.cs
- DrawingGroupDrawingContext.cs
- DateTimeOffset.cs
- FormViewDeleteEventArgs.cs
- ContextMenuAutomationPeer.cs
- TrustExchangeException.cs
- AudioFileOut.cs
- CroppedBitmap.cs
- LineProperties.cs
- SqlDataSourceCache.cs
- ManagedIStream.cs
- RepeaterDataBoundAdapter.cs
- Window.cs
- GeometryGroup.cs
- UpdatePanel.cs
- NetworkAddressChange.cs
- UrlMappingCollection.cs