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
- DataGridViewColumnEventArgs.cs
- SingleSelectRootGridEntry.cs
- StoreItemCollection.Loader.cs
- HttpPostLocalhostServerProtocol.cs
- ExpressionParser.cs
- HuffmanTree.cs
- CompilationSection.cs
- InkSerializer.cs
- OleDbCommandBuilder.cs
- ExpressionWriter.cs
- BookmarkEventArgs.cs
- XmlIlGenerator.cs
- GenericWebPart.cs
- ReachPageContentSerializerAsync.cs
- XPathAncestorIterator.cs
- PropertyGroupDescription.cs
- AutoGeneratedField.cs
- XmlSortKeyAccumulator.cs
- PageAdapter.cs
- TraceHandler.cs
- ControlAdapter.cs
- HttpCookie.cs
- XPathParser.cs
- CheckPair.cs
- localization.cs
- ExpandoClass.cs
- HtmlControl.cs
- ProcessModule.cs
- QueryGeneratorBase.cs
- SafeSecurityHelper.cs
- SmiXetterAccessMap.cs
- SiteMapSection.cs
- XamlRtfConverter.cs
- AnimatedTypeHelpers.cs
- UInt64Storage.cs
- Variable.cs
- WinFormsUtils.cs
- Symbol.cs
- GridViewItemAutomationPeer.cs
- AssociationType.cs
- AsyncResult.cs
- WindowInteractionStateTracker.cs
- TargetControlTypeCache.cs
- UnauthorizedAccessException.cs
- ProcessInfo.cs
- ExceptionUtility.cs
- CodeChecksumPragma.cs
- OdbcConnectionStringbuilder.cs
- WebRequestModuleElementCollection.cs
- ControlPropertyNameConverter.cs
- ImportCatalogPart.cs
- COM2ComponentEditor.cs
- PixelShader.cs
- PrivateFontCollection.cs
- FlowchartDesigner.Helpers.cs
- ListViewTableRow.cs
- CompilerErrorCollection.cs
- NullableBoolConverter.cs
- UrlMappingsModule.cs
- ImageFormatConverter.cs
- GenericRootAutomationPeer.cs
- NetTcpBindingCollectionElement.cs
- HyperLinkStyle.cs
- DataTableTypeConverter.cs
- FlowLayout.cs
- KeyTimeConverter.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- UnicodeEncoding.cs
- CollectionTypeElement.cs
- NaturalLanguageHyphenator.cs
- Section.cs
- AsymmetricSignatureDeformatter.cs
- SmiXetterAccessMap.cs
- HtmlDocument.cs
- ConcurrentBag.cs
- NotifyIcon.cs
- DataGridAutomationPeer.cs
- DetailsViewModeEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- SaveLedgerEntryRequest.cs
- AQNBuilder.cs
- SortFieldComparer.cs
- CookieHandler.cs
- FontEmbeddingManager.cs
- HandleCollector.cs
- ListParaClient.cs
- DictionarySectionHandler.cs
- SweepDirectionValidation.cs
- DesignerForm.cs
- SafeCertificateContext.cs
- PlanCompilerUtil.cs
- JsonDeserializer.cs
- SpecialNameAttribute.cs
- CfgArc.cs
- ProcessModelSection.cs
- ProtocolsConfiguration.cs
- SafePEFileHandle.cs
- DataGridViewTextBoxCell.cs
- SessionStateModule.cs