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
- ResourceReader.cs
- NavigationProgressEventArgs.cs
- ObjectListTitleAttribute.cs
- SweepDirectionValidation.cs
- OutputWindow.cs
- ResourceExpressionBuilder.cs
- StylusDownEventArgs.cs
- MetadataCache.cs
- BitmapPalettes.cs
- InternalControlCollection.cs
- TextFormatter.cs
- WeakReadOnlyCollection.cs
- SQLSingle.cs
- versioninfo.cs
- CharacterMetrics.cs
- PackUriHelper.cs
- EntityDataSourceSelectingEventArgs.cs
- ElementAtQueryOperator.cs
- DataFormats.cs
- CodeCastExpression.cs
- AttributeTableBuilder.cs
- BasicDesignerLoader.cs
- PerformanceCounterPermission.cs
- DataRowView.cs
- SiteMapDataSourceView.cs
- CurrencyWrapper.cs
- BitmapFrame.cs
- Win32Exception.cs
- BrushMappingModeValidation.cs
- WindowsBrush.cs
- XmlTextWriter.cs
- MouseWheelEventArgs.cs
- StrokeNodeEnumerator.cs
- OneToOneMappingSerializer.cs
- TemplateField.cs
- CompleteWizardStep.cs
- XmlAnyElementAttributes.cs
- ColorKeyFrameCollection.cs
- QilLoop.cs
- ConstructorNeedsTagAttribute.cs
- DeleteIndexBinder.cs
- Geometry.cs
- Mutex.cs
- VariableAction.cs
- LineInfo.cs
- UnsafeNetInfoNativeMethods.cs
- InternalBase.cs
- DocumentOrderComparer.cs
- MailHeaderInfo.cs
- BadImageFormatException.cs
- WindowsStatic.cs
- UniqueIdentifierService.cs
- RTTypeWrapper.cs
- Table.cs
- CodePageEncoding.cs
- SqlDataSourceStatusEventArgs.cs
- XmlAttributeCollection.cs
- ButtonColumn.cs
- BrowserInteropHelper.cs
- UserNamePasswordValidationMode.cs
- ThreadExceptionEvent.cs
- TableChangeProcessor.cs
- DeferredElementTreeState.cs
- CollectionChangeEventArgs.cs
- ScaleTransform3D.cs
- Dump.cs
- SqlProviderServices.cs
- clipboard.cs
- AnimationException.cs
- PageRequestManager.cs
- DATA_BLOB.cs
- PassportAuthentication.cs
- MultiByteCodec.cs
- DetailsView.cs
- LinqExpressionNormalizer.cs
- SafeNativeMethodsOther.cs
- SmtpClient.cs
- PageThemeCodeDomTreeGenerator.cs
- EasingQuaternionKeyFrame.cs
- BuildResultCache.cs
- TextElementEnumerator.cs
- DisplayNameAttribute.cs
- IPAddressCollection.cs
- HttpResponseHeader.cs
- FillBehavior.cs
- EmptyCollection.cs
- MenuItemAutomationPeer.cs
- ControlCachePolicy.cs
- InputBinder.cs
- Stopwatch.cs
- DurableInstance.cs
- WriteTimeStream.cs
- safelinkcollection.cs
- ContextInformation.cs
- EdmComplexPropertyAttribute.cs
- ProfileBuildProvider.cs
- rsa.cs
- _AuthenticationState.cs
- EntityDataReader.cs
- ResXResourceReader.cs