Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / QueryCacheEntry.cs / 1305376 / QueryCacheEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- 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 [....] // @backupOwner [....] //----------------------------------------------------------------------------- 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
- WebHeaderCollection.cs
- FontStyle.cs
- ConfigXmlWhitespace.cs
- WebConfigurationManager.cs
- ModifierKeysValueSerializer.cs
- WebReferencesBuildProvider.cs
- StringAnimationUsingKeyFrames.cs
- CommonGetThemePartSize.cs
- HttpWebRequest.cs
- RegexCompiler.cs
- HtmlInputSubmit.cs
- ArgumentValidation.cs
- StringValidator.cs
- WindowInteropHelper.cs
- Timer.cs
- SiteMapNodeCollection.cs
- TextBlockAutomationPeer.cs
- ClientFormsAuthenticationMembershipProvider.cs
- WorkflowMarkupSerializer.cs
- ConfigurationValidatorAttribute.cs
- MatrixIndependentAnimationStorage.cs
- PipeStream.cs
- OutputScopeManager.cs
- SqlDataSourceSelectingEventArgs.cs
- RegistryHandle.cs
- AxDesigner.cs
- RequestCacheEntry.cs
- KeyConstraint.cs
- BuildResultCache.cs
- TimersDescriptionAttribute.cs
- TreeNodeBinding.cs
- MarkupWriter.cs
- SecuritySessionFilter.cs
- sitestring.cs
- CaseKeyBox.ViewModel.cs
- DictionaryMarkupSerializer.cs
- XmlCharacterData.cs
- TextChangedEventArgs.cs
- PaintEvent.cs
- NativeMethodsOther.cs
- ContextInformation.cs
- validationstate.cs
- SharedTcpTransportManager.cs
- KeyInstance.cs
- ContextMarshalException.cs
- StateMachine.cs
- WizardPanel.cs
- Transactions.cs
- FlowDocumentPage.cs
- ChtmlLinkAdapter.cs
- FixedDSBuilder.cs
- StickyNote.cs
- ObjectConverter.cs
- LoadRetryHandler.cs
- FullTextBreakpoint.cs
- SqlProviderServices.cs
- PageAsyncTaskManager.cs
- ValidationHelper.cs
- SourceCollection.cs
- TextTreePropertyUndoUnit.cs
- CLRBindingWorker.cs
- FaultReason.cs
- MethodAccessException.cs
- ReadOnlyDataSourceView.cs
- DataGridToolTip.cs
- PageStatePersister.cs
- AsymmetricSignatureDeformatter.cs
- UrlAuthFailedErrorFormatter.cs
- OleDbRowUpdatedEvent.cs
- SettingsBase.cs
- DataGridViewColumnHeaderCell.cs
- PersonalizationProviderCollection.cs
- ListViewInsertEventArgs.cs
- Application.cs
- DataGridViewCellMouseEventArgs.cs
- PersonalizationProvider.cs
- LockRecursionException.cs
- TypeResolvingOptionsAttribute.cs
- Transform3D.cs
- X500Name.cs
- WindowsSecurityTokenAuthenticator.cs
- ConnectionManagementSection.cs
- SocketInformation.cs
- InstancePersistenceCommandException.cs
- BitmapSource.cs
- DesigntimeLicenseContext.cs
- ValidationRuleCollection.cs
- DesignTimeTemplateParser.cs
- StateMachineAction.cs
- SwitchAttribute.cs
- _ListenerResponseStream.cs
- IndentedTextWriter.cs
- DBCommand.cs
- DrawListViewSubItemEventArgs.cs
- PlacementWorkspace.cs
- TreeChangeInfo.cs
- ConfigurationLocationCollection.cs
- OdbcConnectionFactory.cs
- XmlSchemaImport.cs
- TokenBasedSet.cs