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
- AuthenticationService.cs
- VisualTreeHelper.cs
- ComplexTypeEmitter.cs
- TdsValueSetter.cs
- FamilyTypefaceCollection.cs
- CounterCreationData.cs
- DbCommandDefinition.cs
- CoreSwitches.cs
- UidPropertyAttribute.cs
- DataGridViewCellStyleBuilderDialog.cs
- Int64Storage.cs
- ZipFileInfo.cs
- ModelTypeConverter.cs
- PathFigureCollection.cs
- BamlRecordReader.cs
- TreeBuilderXamlTranslator.cs
- PeerNameRegistration.cs
- NonNullItemCollection.cs
- Sequence.cs
- _UncName.cs
- PLINQETWProvider.cs
- XmlDeclaration.cs
- PagePropertiesChangingEventArgs.cs
- MailAddressCollection.cs
- Walker.cs
- objectquery_tresulttype.cs
- UInt16.cs
- JulianCalendar.cs
- FormsAuthenticationUserCollection.cs
- TargetConverter.cs
- TypeUsageBuilder.cs
- CqlLexerHelpers.cs
- ValidationSummary.cs
- OdbcUtils.cs
- StyleCollectionEditor.cs
- _ProxyRegBlob.cs
- ObjectStateFormatter.cs
- EmptyQuery.cs
- PersonalizableAttribute.cs
- ExceptionValidationRule.cs
- OrCondition.cs
- ModelChangedEventArgsImpl.cs
- InputLanguageCollection.cs
- TextServicesCompartmentEventSink.cs
- ProxyFragment.cs
- DispatcherObject.cs
- RuntimeResourceSet.cs
- ToolStripPanel.cs
- XmlSerializerSection.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- TraceSection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Marshal.cs
- PropertyInformationCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SQLStringStorage.cs
- RSAOAEPKeyExchangeFormatter.cs
- SoapSchemaExporter.cs
- FormsAuthenticationUser.cs
- EndpointAddress.cs
- SafeSecurityHandles.cs
- UTF7Encoding.cs
- CompositeCollection.cs
- TextElement.cs
- StubHelpers.cs
- UnescapedXmlDiagnosticData.cs
- DbCommandTree.cs
- StorageMappingFragment.cs
- PasswordBoxAutomationPeer.cs
- ParseChildrenAsPropertiesAttribute.cs
- LexicalChunk.cs
- MonthChangedEventArgs.cs
- PhysicalAddress.cs
- ToolStripScrollButton.cs
- IdentityReference.cs
- CorrelationValidator.cs
- HashLookup.cs
- Attachment.cs
- TextSimpleMarkerProperties.cs
- SourceFilter.cs
- DeleteHelper.cs
- ItemChangedEventArgs.cs
- FixedSOMFixedBlock.cs
- AsymmetricAlgorithm.cs
- XmlObjectSerializerWriteContextComplex.cs
- ScopeElementCollection.cs
- MetadataArtifactLoaderCompositeResource.cs
- TextSpanModifier.cs
- DataBindingList.cs
- GridView.cs
- TextOptions.cs
- Package.cs
- PersonalizableTypeEntry.cs
- PrintPreviewDialog.cs
- XmlEntityReference.cs
- UIElementHelper.cs
- contentDescriptor.cs
- GenericQueueSurrogate.cs
- DecimalAnimation.cs
- Binding.cs