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
- GrammarBuilderWildcard.cs
- Model3DGroup.cs
- ACE.cs
- ValidatorUtils.cs
- BaseServiceProvider.cs
- MexTcpBindingCollectionElement.cs
- PasswordTextNavigator.cs
- TreeNodeBinding.cs
- SessionState.cs
- RSAPKCS1SignatureFormatter.cs
- Label.cs
- SplitterPanel.cs
- Formatter.cs
- RouteTable.cs
- DropShadowBitmapEffect.cs
- QilName.cs
- BitmapEffectGeneralTransform.cs
- XsltException.cs
- IItemContainerGenerator.cs
- XPathDocumentBuilder.cs
- RtfFormatStack.cs
- WindowsAuthenticationEventArgs.cs
- DBNull.cs
- IntranetCredentialPolicy.cs
- StringValidatorAttribute.cs
- DBConcurrencyException.cs
- Win32Exception.cs
- TransactionsSectionGroup.cs
- ProvidersHelper.cs
- NameSpaceExtractor.cs
- PluralizationServiceUtil.cs
- DropShadowBitmapEffect.cs
- RulePatternOps.cs
- DataGridViewButtonCell.cs
- Utils.cs
- InfoCardProofToken.cs
- Synchronization.cs
- SoapProtocolReflector.cs
- SuppressMessageAttribute.cs
- CellParaClient.cs
- AnimationTimeline.cs
- ByteAnimationUsingKeyFrames.cs
- LongValidator.cs
- MappedMetaModel.cs
- Drawing.cs
- OleDbRowUpdatingEvent.cs
- ColorTransformHelper.cs
- RectangleGeometry.cs
- SmtpMail.cs
- InvokePattern.cs
- EditorOptionAttribute.cs
- HandleCollector.cs
- XmlNavigatorFilter.cs
- SessionEndedEventArgs.cs
- ElementUtil.cs
- XmlC14NWriter.cs
- PostBackTrigger.cs
- PersonalizablePropertyEntry.cs
- LayoutInformation.cs
- SchemeSettingElement.cs
- XmlTextAttribute.cs
- RouteParameter.cs
- SQLInt64.cs
- HtmlShimManager.cs
- MaterialCollection.cs
- HTMLTagNameToTypeMapper.cs
- CounterCreationData.cs
- MasterPageBuildProvider.cs
- DataStorage.cs
- MouseEventArgs.cs
- SafeNativeMethods.cs
- PathFigure.cs
- PerformanceCounterNameAttribute.cs
- XmlAttributeHolder.cs
- RelationHandler.cs
- TemplateAction.cs
- PrimarySelectionAdorner.cs
- WebContentFormatHelper.cs
- SafeFindHandle.cs
- TableItemStyle.cs
- WebBrowserUriTypeConverter.cs
- AttributeData.cs
- NewArray.cs
- CommonObjectSecurity.cs
- Animatable.cs
- EntityCommandCompilationException.cs
- FormViewModeEventArgs.cs
- CustomErrorsSection.cs
- ColorContext.cs
- DotExpr.cs
- GridSplitterAutomationPeer.cs
- ClientConfigurationSystem.cs
- TreeChangeInfo.cs
- EntityExpressionVisitor.cs
- Pen.cs
- FixedTextView.cs
- ChangeDirector.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XsdValidatingReader.cs
- Int32Rect.cs