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
- ThemeDictionaryExtension.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Cursors.cs
- TextEndOfParagraph.cs
- DocumentSequence.cs
- PropertyRecord.cs
- DependencyPropertyAttribute.cs
- Section.cs
- PrefixHandle.cs
- WebPartConnectionCollection.cs
- elementinformation.cs
- DatasetMethodGenerator.cs
- EngineSiteSapi.cs
- FontUnitConverter.cs
- RenderDataDrawingContext.cs
- xmlglyphRunInfo.cs
- ArrayTypeMismatchException.cs
- TimeoutException.cs
- MoveSizeWinEventHandler.cs
- ChannelBinding.cs
- CompilerErrorCollection.cs
- CounterSample.cs
- SqlTrackingService.cs
- AssemblyLoader.cs
- CallbackTimeoutsBehavior.cs
- RestHandler.cs
- WindowsStartMenu.cs
- FileUtil.cs
- KoreanLunisolarCalendar.cs
- WebPartMovingEventArgs.cs
- AttributedMetaModel.cs
- Preprocessor.cs
- DoubleAnimationUsingKeyFrames.cs
- JournalEntry.cs
- InstancePersistenceContext.cs
- ResourcePermissionBaseEntry.cs
- Tracking.cs
- PaintValueEventArgs.cs
- TreeNodeStyle.cs
- ValidationErrorCollection.cs
- RequestCacheValidator.cs
- EventHandlersStore.cs
- OleDbRowUpdatedEvent.cs
- PartialTrustVisibleAssemblyCollection.cs
- WebControlParameterProxy.cs
- WindowsFont.cs
- CalculatedColumn.cs
- SmiTypedGetterSetter.cs
- SamlDelegatingWriter.cs
- DispatcherSynchronizationContext.cs
- BitmapEffect.cs
- FixedHighlight.cs
- ProbeMatchesMessage11.cs
- PreviewPageInfo.cs
- SimplePropertyEntry.cs
- BitmapScalingModeValidation.cs
- PartialCachingAttribute.cs
- RightsManagementEncryptedStream.cs
- hresults.cs
- DoubleCollection.cs
- EventTask.cs
- ObjectQueryProvider.cs
- FormViewRow.cs
- SocketStream.cs
- GridView.cs
- DataProtection.cs
- GACIdentityPermission.cs
- COM2PictureConverter.cs
- InvalidOperationException.cs
- DocumentCollection.cs
- Roles.cs
- ClientSideQueueItem.cs
- EntityDataSourceEntitySetNameItem.cs
- DataColumnMappingCollection.cs
- X509Chain.cs
- SuspendDesigner.cs
- WebPartCloseVerb.cs
- LayoutSettings.cs
- smtpconnection.cs
- PageSetupDialog.cs
- JsonDataContract.cs
- TextPenaltyModule.cs
- PageCatalogPartDesigner.cs
- XmlJsonReader.cs
- SapiGrammar.cs
- Atom10FormatterFactory.cs
- ScrollBarAutomationPeer.cs
- CancelEventArgs.cs
- MetadataUtil.cs
- WebPart.cs
- SynchronizedDispatch.cs
- SmtpMail.cs
- TCPListener.cs
- ParallelSeparator.xaml.cs
- DbTransaction.cs
- ToolboxSnapDragDropEventArgs.cs
- autovalidator.cs
- DataPager.cs
- SemanticAnalyzer.cs
- _LocalDataStore.cs