Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MemberNameValidator.cs
- ExceptionUtil.cs
- NameNode.cs
- Image.cs
- ConfigPathUtility.cs
- SafeCancelMibChangeNotify.cs
- BasicViewGenerator.cs
- ButtonColumn.cs
- StringUtil.cs
- ToolStrip.cs
- ErrorEventArgs.cs
- FrameworkElementAutomationPeer.cs
- HttpModuleCollection.cs
- TextEffectCollection.cs
- EntityDataSourceValidationException.cs
- TextClipboardData.cs
- DocumentStatusResources.cs
- ComponentChangedEvent.cs
- HtmlFormWrapper.cs
- XmlElementList.cs
- CompiledRegexRunner.cs
- UnconditionalPolicy.cs
- GlyphRunDrawing.cs
- AlphabeticalEnumConverter.cs
- CacheOutputQuery.cs
- ReachPageContentSerializer.cs
- ListViewUpdatedEventArgs.cs
- NGCPageContentSerializerAsync.cs
- CheckPair.cs
- Tile.cs
- ObjectDataSourceEventArgs.cs
- RayHitTestParameters.cs
- FilterableAttribute.cs
- SqlFileStream.cs
- Model3D.cs
- XNameTypeConverter.cs
- Function.cs
- TitleStyle.cs
- __ConsoleStream.cs
- ProfileGroupSettings.cs
- ObjectPersistData.cs
- LicenseProviderAttribute.cs
- PropertyKey.cs
- FormatterServices.cs
- SqlNodeAnnotations.cs
- Constants.cs
- PrefixQName.cs
- GridViewColumnHeader.cs
- OleDbConnectionFactory.cs
- EnumerableValidator.cs
- DataColumnMapping.cs
- SignalGate.cs
- PersistenceException.cs
- _LocalDataStore.cs
- RecognizerStateChangedEventArgs.cs
- SQLUtility.cs
- controlskin.cs
- DataBinding.cs
- HelpKeywordAttribute.cs
- SelectedPathEditor.cs
- DataGridTextBoxColumn.cs
- OleStrCAMarshaler.cs
- ViewPort3D.cs
- MediaTimeline.cs
- HtmlShimManager.cs
- Array.cs
- BroadcastEventHelper.cs
- DataBinding.cs
- MenuItemCollection.cs
- DecoderExceptionFallback.cs
- PointLight.cs
- RenderDataDrawingContext.cs
- MergeLocalizationDirectives.cs
- FormViewPagerRow.cs
- WebConfigurationManager.cs
- RegisteredHiddenField.cs
- RenderData.cs
- AccessDataSourceDesigner.cs
- ParameterExpression.cs
- ParameterModifier.cs
- SkewTransform.cs
- XPathAxisIterator.cs
- CodeGenerationManager.cs
- FileSystemEnumerable.cs
- BamlRecordReader.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FileDialogCustomPlace.cs
- BuilderElements.cs
- ConstraintEnumerator.cs
- InstanceDescriptor.cs
- VectorCollectionValueSerializer.cs
- Stylus.cs
- XslAst.cs
- DbConnectionPoolIdentity.cs
- PointCollection.cs
- ISCIIEncoding.cs
- SafeEventLogWriteHandle.cs
- HandlerFactoryCache.cs
- AttachedPropertyBrowsableAttribute.cs
- PageStatePersister.cs