Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AssociationSetEnd.cs
- ControlCachePolicy.cs
- CompleteWizardStep.cs
- DynamicScriptObject.cs
- XmlDataSource.cs
- AttachmentService.cs
- PathSegment.cs
- DmlSqlGenerator.cs
- WebPartMinimizeVerb.cs
- CacheHelper.cs
- ScriptComponentDescriptor.cs
- TypeToTreeConverter.cs
- RelationshipDetailsCollection.cs
- MobilePage.cs
- WeakHashtable.cs
- WebEventCodes.cs
- SqlLiftIndependentRowExpressions.cs
- HttpResponseHeader.cs
- HttpProtocolImporter.cs
- WriterOutput.cs
- RawMouseInputReport.cs
- MarshalByRefObject.cs
- ImageInfo.cs
- WebPartConnectionsCloseVerb.cs
- EmptyElement.cs
- Binding.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Automation.cs
- Win32Native.cs
- TemplateColumn.cs
- XmlEnumAttribute.cs
- FatalException.cs
- OutputCacheProfile.cs
- ComponentRenameEvent.cs
- XmlHierarchyData.cs
- PerformanceCounterPermissionEntry.cs
- StorageMappingItemCollection.cs
- EntitySqlException.cs
- BitmapEffectCollection.cs
- ReadOnlyPropertyMetadata.cs
- UTF32Encoding.cs
- CodePageEncoding.cs
- DefaultValueTypeConverter.cs
- HighContrastHelper.cs
- ColumnResizeAdorner.cs
- BitmapPalette.cs
- ToolStripItem.cs
- WebRequestModuleElement.cs
- RtfToXamlLexer.cs
- TextServicesCompartmentContext.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Overlapped.cs
- EditingScope.cs
- SID.cs
- ClickablePoint.cs
- EditorZone.cs
- PageVisual.cs
- ImageButton.cs
- SoapMessage.cs
- FormsAuthenticationCredentials.cs
- PropertyInformation.cs
- ParsedAttributeCollection.cs
- CollectionConverter.cs
- UriTemplateMatchException.cs
- SocketStream.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SqlExpressionNullability.cs
- ProtocolException.cs
- ResourcePermissionBaseEntry.cs
- DateTimeSerializationSection.cs
- TemplateContentLoader.cs
- ProfileManager.cs
- XmlSerializationGeneratedCode.cs
- MemberDescriptor.cs
- BamlLocalizationDictionary.cs
- NumberFormatter.cs
- XmlQueryStaticData.cs
- Pkcs9Attribute.cs
- StorageTypeMapping.cs
- ActivityInstanceReference.cs
- ComponentResourceManager.cs
- PhysicalFontFamily.cs
- TokenDescriptor.cs
- VarRemapper.cs
- HtmlTitle.cs
- XmlLoader.cs
- Literal.cs
- SqlDataRecord.cs
- X509ChainElement.cs
- IPEndPoint.cs
- WindowsEditBox.cs
- BatchStream.cs
- DataColumnMappingCollection.cs
- RuntimeWrappedException.cs
- DataServiceResponse.cs
- ActionFrame.cs
- AnnotationMap.cs
- SmiSettersStream.cs
- DynamicMethod.cs
- SqlTriggerContext.cs