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
- UpdatePanelControlTrigger.cs
- MULTI_QI.cs
- PageClientProxyGenerator.cs
- ValidationSummary.cs
- Error.cs
- Monitor.cs
- GifBitmapDecoder.cs
- GlyphsSerializer.cs
- CommittableTransaction.cs
- LockedActivityGlyph.cs
- PackagePartCollection.cs
- InternalSafeNativeMethods.cs
- ExceptionWrapper.cs
- DataBindingCollectionEditor.cs
- DeclaredTypeValidator.cs
- WpfKnownType.cs
- CookielessHelper.cs
- XmlSchemaComplexContent.cs
- JoinCqlBlock.cs
- SecurityUtils.cs
- HMACSHA512.cs
- IndependentAnimationStorage.cs
- QilExpression.cs
- SynchronizedDispatch.cs
- RIPEMD160.cs
- DiscriminatorMap.cs
- Ref.cs
- SqlDataSourceCommandEventArgs.cs
- OdbcConnectionFactory.cs
- FileDialog_Vista_Interop.cs
- XmlDocument.cs
- SignedXml.cs
- MessageProperties.cs
- EntityTypeEmitter.cs
- EventProxy.cs
- SafeCryptoHandles.cs
- WsdlInspector.cs
- DesignerForm.cs
- DocumentViewerHelper.cs
- ExpressionNormalizer.cs
- WeakKeyDictionary.cs
- ImageListUtils.cs
- XPathScanner.cs
- XmlStrings.cs
- MenuItemStyle.cs
- CompiledXpathExpr.cs
- SqlHelper.cs
- DesignerCalendarAdapter.cs
- cache.cs
- sortedlist.cs
- AxDesigner.cs
- DictionarySurrogate.cs
- DesignerInterfaces.cs
- ListDependantCardsRequest.cs
- SuppressMergeCheckAttribute.cs
- LinkedResourceCollection.cs
- GifBitmapEncoder.cs
- ModifierKeysValueSerializer.cs
- SoapInteropTypes.cs
- ItemsControl.cs
- NameValuePair.cs
- Deflater.cs
- SqlNodeAnnotations.cs
- ObjectDataSourceDisposingEventArgs.cs
- ImpersonationContext.cs
- LoadMessageLogger.cs
- HttpPostedFile.cs
- columnmapfactory.cs
- RelationshipType.cs
- PublishLicense.cs
- XPathBinder.cs
- XPathSelectionIterator.cs
- ElementProxy.cs
- DataControlPagerLinkButton.cs
- RepeaterCommandEventArgs.cs
- DataColumnChangeEvent.cs
- CaretElement.cs
- QueryInterceptorAttribute.cs
- DetailsViewDeletedEventArgs.cs
- ChannelTokenTypeConverter.cs
- DataExpression.cs
- SymDocumentType.cs
- CompositeDuplexBindingElementImporter.cs
- XmlQueryCardinality.cs
- SmiRecordBuffer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- GenericEnumerator.cs
- RequestSecurityToken.cs
- Margins.cs
- HttpProfileGroupBase.cs
- PasswordBoxAutomationPeer.cs
- ProgressBar.cs
- AudioFormatConverter.cs
- Camera.cs
- UserControl.cs
- ToolStripAdornerWindowService.cs
- ContainerUtilities.cs
- ProtocolsConfigurationEntry.cs
- AdapterUtil.cs
- PartialArray.cs