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
- StackSpiller.Bindings.cs
- WebBrowser.cs
- DLinqColumnProvider.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PeerValidationBehavior.cs
- SqlEnums.cs
- EpmCustomContentWriterNodeData.cs
- AssemblyBuilder.cs
- TreeNode.cs
- RegexBoyerMoore.cs
- StartUpEventArgs.cs
- DirtyTextRange.cs
- BamlTreeNode.cs
- OperationResponse.cs
- WebColorConverter.cs
- ServiceOperationListItem.cs
- SqlConnectionFactory.cs
- LicenseManager.cs
- BeginEvent.cs
- SecurityKeyUsage.cs
- __ConsoleStream.cs
- DetailsViewDeleteEventArgs.cs
- XmlName.cs
- TypePresenter.xaml.cs
- TypeResolvingOptions.cs
- TextPatternIdentifiers.cs
- KeyBinding.cs
- UTF32Encoding.cs
- DataContext.cs
- DigitShape.cs
- ConfigurationProperty.cs
- ComplexPropertyEntry.cs
- RawStylusInputCustomDataList.cs
- CurrentChangingEventManager.cs
- EnvelopedPkcs7.cs
- SqlUtils.cs
- LifetimeServices.cs
- XsdValidatingReader.cs
- DiffuseMaterial.cs
- RepeaterItem.cs
- PasswordRecoveryAutoFormat.cs
- SqlCacheDependencyDatabaseCollection.cs
- BitmapFrame.cs
- DataServiceCollectionOfT.cs
- FactoryId.cs
- PriorityQueue.cs
- _ChunkParse.cs
- DispatchWrapper.cs
- Models.cs
- BindingSourceDesigner.cs
- Context.cs
- SQLInt64Storage.cs
- PersistenceTypeAttribute.cs
- TextElementCollection.cs
- Socket.cs
- CookielessData.cs
- DodSequenceMerge.cs
- RequestQueryProcessor.cs
- HtmlTitle.cs
- __Filters.cs
- XslException.cs
- DataGridViewColumnEventArgs.cs
- StylusPlugin.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ReferencedType.cs
- StylusButton.cs
- XmlnsCompatibleWithAttribute.cs
- SimpleColumnProvider.cs
- DataTableMappingCollection.cs
- CasesDictionary.cs
- SystemIPv6InterfaceProperties.cs
- LookupNode.cs
- ByteArrayHelperWithString.cs
- XsltException.cs
- TitleStyle.cs
- CompilationLock.cs
- ResXFileRef.cs
- ComAdminInterfaces.cs
- DesignerActionHeaderItem.cs
- SqlDeflator.cs
- DataGridItem.cs
- ObjectListField.cs
- RadioButtonList.cs
- TextEncodedRawTextWriter.cs
- SHA512Managed.cs
- KnownTypes.cs
- SQLBinaryStorage.cs
- XmlSchemaAll.cs
- AnonymousIdentificationSection.cs
- DataSourceHelper.cs
- Int32RectValueSerializer.cs
- XsltOutput.cs
- ContainerControl.cs
- DecodeHelper.cs
- Separator.cs
- COSERVERINFO.cs
- ServerIdentity.cs
- CultureTableRecord.cs
- BStrWrapper.cs
- VScrollBar.cs