Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XmlConvert.cs
- TypeGeneratedEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- NetworkInformationPermission.cs
- ComplexPropertyEntry.cs
- InvokeHandlers.cs
- _OSSOCK.cs
- BamlReader.cs
- RootProfilePropertySettingsCollection.cs
- TCPClient.cs
- SingleKeyFrameCollection.cs
- LinqDataView.cs
- ManagementEventArgs.cs
- TableColumn.cs
- RegistrationServices.cs
- ItemsPanelTemplate.cs
- keycontainerpermission.cs
- ObjectDataSourceStatusEventArgs.cs
- CodeAttributeDeclaration.cs
- CacheDependency.cs
- AccessViolationException.cs
- InvalidBodyAccessException.cs
- ServiceHost.cs
- XNameConverter.cs
- ScrollBarRenderer.cs
- FileUtil.cs
- TreeNodeEventArgs.cs
- AttributeTable.cs
- Camera.cs
- InfoCardListRequest.cs
- Psha1DerivedKeyGenerator.cs
- ConfigurationFileMap.cs
- Label.cs
- TextBox.cs
- EnterpriseServicesHelper.cs
- ParameterReplacerVisitor.cs
- PropertyInfoSet.cs
- HttpChannelBindingToken.cs
- BamlRecordWriter.cs
- ProcessHostFactoryHelper.cs
- TrackingServices.cs
- SymbolDocumentInfo.cs
- safelinkcollection.cs
- WhitespaceSignificantCollectionAttribute.cs
- SecuritySessionSecurityTokenProvider.cs
- EntitySqlQueryState.cs
- ProcessThread.cs
- Mapping.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- sqlmetadatafactory.cs
- ClientConvert.cs
- ThrowOnMultipleAssignment.cs
- SelectionEditor.cs
- Span.cs
- StoreAnnotationsMap.cs
- HeaderCollection.cs
- RectangleConverter.cs
- SettingsPropertyCollection.cs
- ExitEventArgs.cs
- HotCommands.cs
- QuaternionRotation3D.cs
- EventBookmark.cs
- DllHostInitializer.cs
- XPathExpr.cs
- ThemeDictionaryExtension.cs
- PartBasedPackageProperties.cs
- VBCodeProvider.cs
- XmlHierarchyData.cs
- SafeSystemMetrics.cs
- _NetRes.cs
- XmlDataFileEditor.cs
- MulticastDelegate.cs
- RegexCode.cs
- IIS7WorkerRequest.cs
- HttpsHostedTransportConfiguration.cs
- XPathNavigatorKeyComparer.cs
- DetailsViewPagerRow.cs
- XmlElementAttribute.cs
- XmlWriterDelegator.cs
- ServerValidateEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- UrlMappingsSection.cs
- HttpCacheVaryByContentEncodings.cs
- TextCharacters.cs
- MediaElementAutomationPeer.cs
- MaterialCollection.cs
- OciEnlistContext.cs
- CommentAction.cs
- DoubleUtil.cs
- basenumberconverter.cs
- ObjectCloneHelper.cs
- TaskHelper.cs
- FullTextBreakpoint.cs
- Metafile.cs
- KeyNotFoundException.cs
- HttpHandlerActionCollection.cs
- HMACSHA384.cs
- ListItemParagraph.cs
- SystemEvents.cs
- DefaultObjectMappingItemCollection.cs