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
- ManagedFilter.cs
- LinqDataView.cs
- HandlerBase.cs
- StrokeFIndices.cs
- IApplicationTrustManager.cs
- ValueTypeFixupInfo.cs
- TitleStyle.cs
- EdmItemCollection.OcAssemblyCache.cs
- IsolatedStorage.cs
- CollectionView.cs
- EntityDataSourceConfigureObjectContext.cs
- InheritedPropertyChangedEventArgs.cs
- DbCommandTree.cs
- LiteralLink.cs
- MetafileHeader.cs
- Win32KeyboardDevice.cs
- SoapAttributeAttribute.cs
- PreviewPageInfo.cs
- VSDExceptions.cs
- CfgParser.cs
- WSDualHttpBinding.cs
- EntityViewGenerator.cs
- SqlTriggerContext.cs
- ConnectionStringSettingsCollection.cs
- OraclePermission.cs
- OneOfConst.cs
- ToolStripActionList.cs
- SafeNativeMethods.cs
- precedingquery.cs
- LingerOption.cs
- WebPartConnectionsConnectVerb.cs
- UserPreferenceChangingEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- ServiceX509SecurityTokenProvider.cs
- HtmlWindowCollection.cs
- CodeDomConfigurationHandler.cs
- StreamInfo.cs
- CodeTypeDeclaration.cs
- ConfigurationValue.cs
- Stroke.cs
- DBCommandBuilder.cs
- EventLogLink.cs
- SystemInfo.cs
- CellCreator.cs
- WebServicesDescriptionAttribute.cs
- WsdlInspector.cs
- ObjectQuery.cs
- DataGridViewRowsRemovedEventArgs.cs
- ColumnProvider.cs
- NodeCounter.cs
- DescendantQuery.cs
- EntityViewGenerator.cs
- TypeHelper.cs
- AxisAngleRotation3D.cs
- GridViewUpdateEventArgs.cs
- CodeBlockBuilder.cs
- InputLanguage.cs
- ForceCopyBuildProvider.cs
- BasicViewGenerator.cs
- DeploymentSection.cs
- ResourceDisplayNameAttribute.cs
- InkCanvasSelectionAdorner.cs
- RegexCompilationInfo.cs
- ExecutorLocksHeldException.cs
- EntitySqlQueryState.cs
- OperationResponse.cs
- VersionedStreamOwner.cs
- RichTextBox.cs
- BinaryUtilClasses.cs
- PersonalizablePropertyEntry.cs
- SynchronizationLockException.cs
- TripleDESCryptoServiceProvider.cs
- AppearanceEditorPart.cs
- GraphicsContainer.cs
- KeyPressEvent.cs
- CodeDOMProvider.cs
- ConnectionStringSettingsCollection.cs
- ChtmlTextWriter.cs
- WindowsStatic.cs
- CodeLabeledStatement.cs
- KeyTime.cs
- ThemeableAttribute.cs
- StoryFragments.cs
- DescriptionAttribute.cs
- BufferedStream.cs
- AnnotationHelper.cs
- DecimalFormatter.cs
- ResourceReferenceKeyNotFoundException.cs
- NativeActivityFaultContext.cs
- RenderData.cs
- RuleInfoComparer.cs
- WinFormsComponentEditor.cs
- DetailsViewDeleteEventArgs.cs
- ComponentDispatcherThread.cs
- InvalidAsynchronousStateException.cs
- WmlFormAdapter.cs
- CompiledRegexRunner.cs
- WebBrowserDesigner.cs
- PasswordRecovery.cs
- FusionWrap.cs