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
- FunctionQuery.cs
- ClockGroup.cs
- Predicate.cs
- ScrollChrome.cs
- AutomationIdentifier.cs
- UITypeEditor.cs
- GenericUriParser.cs
- StringToken.cs
- DesignerCategoryAttribute.cs
- StringBlob.cs
- DescendentsWalker.cs
- AspNetCacheProfileAttribute.cs
- MetabaseSettings.cs
- _ConnectionGroup.cs
- CodeIndexerExpression.cs
- Pen.cs
- MethodBuilderInstantiation.cs
- DataTableMappingCollection.cs
- BaseParagraph.cs
- Profiler.cs
- ConnectionStringSettingsCollection.cs
- NumericUpDown.cs
- Vector3DCollectionConverter.cs
- LayoutInformation.cs
- PenLineJoinValidation.cs
- FirstMatchCodeGroup.cs
- InitializerFacet.cs
- AttributeProviderAttribute.cs
- TaskResultSetter.cs
- TempFiles.cs
- Model3DCollection.cs
- formatter.cs
- XmlSchemaAttributeGroupRef.cs
- MetabaseServerConfig.cs
- ValidationManager.cs
- DataGridColumnHeader.cs
- Evaluator.cs
- SettingsAttributes.cs
- ColorInterpolationModeValidation.cs
- CqlGenerator.cs
- Dictionary.cs
- ResourceDefaultValueAttribute.cs
- XmlAttributeCollection.cs
- RenderOptions.cs
- ValueTypeFieldReference.cs
- FormsIdentity.cs
- EventTrigger.cs
- ScriptDescriptor.cs
- XmlDocumentFragment.cs
- InvokeGenerator.cs
- TaskFileService.cs
- BasicSecurityProfileVersion.cs
- Route.cs
- XmlHierarchicalEnumerable.cs
- XmlElementAttributes.cs
- QueryInterceptorAttribute.cs
- DesignTimeTemplateParser.cs
- ToolStripControlHost.cs
- GridEntry.cs
- SafeRightsManagementSessionHandle.cs
- TransactionTable.cs
- HtmlTernaryTree.cs
- TemplateInstanceAttribute.cs
- SplineKeyFrames.cs
- CodeCastExpression.cs
- TextViewBase.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ElementsClipboardData.cs
- SqlSelectStatement.cs
- EtwTrackingBehavior.cs
- UIElementParagraph.cs
- ComplexObject.cs
- RegisterInfo.cs
- HandledMouseEvent.cs
- GenericEnumerator.cs
- NotCondition.cs
- ColumnResult.cs
- ConvertersCollection.cs
- XmlWrappingReader.cs
- DirectoryObjectSecurity.cs
- Calendar.cs
- CacheForPrimitiveTypes.cs
- Row.cs
- MobileControlBuilder.cs
- ModifyActivitiesPropertyDescriptor.cs
- ValidationPropertyAttribute.cs
- Repeater.cs
- PageSettings.cs
- TrustManagerMoreInformation.cs
- _ConnectStream.cs
- FloatUtil.cs
- TableSectionStyle.cs
- VisualTreeUtils.cs
- FormatterConverter.cs
- DateTimeFormatInfo.cs
- DoubleKeyFrameCollection.cs
- IisTraceWebEventProvider.cs
- NotImplementedException.cs
- XmlDataDocument.cs
- QueryMatcher.cs