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
- MethodToken.cs
- DataGridRowsPresenter.cs
- _AutoWebProxyScriptEngine.cs
- NotFiniteNumberException.cs
- TableAdapterManagerGenerator.cs
- PixelFormatConverter.cs
- XmlSerializerVersionAttribute.cs
- SapiRecognizer.cs
- RegistryKey.cs
- _MultipleConnectAsync.cs
- Point3DValueSerializer.cs
- PageContent.cs
- StoreAnnotationsMap.cs
- XmlReflectionImporter.cs
- Msmq4SubqueuePoisonHandler.cs
- RelationshipWrapper.cs
- WindowPattern.cs
- PreviewKeyDownEventArgs.cs
- Paragraph.cs
- BaseProcessor.cs
- ArraySegment.cs
- CommandHelpers.cs
- BmpBitmapEncoder.cs
- ZipIOLocalFileHeader.cs
- FilteredAttributeCollection.cs
- ListViewItem.cs
- DataRelationCollection.cs
- MatrixAnimationBase.cs
- SessionStateSection.cs
- XamlInterfaces.cs
- ButtonPopupAdapter.cs
- BufferBuilder.cs
- VisualTreeHelper.cs
- SortAction.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlBaseReader.cs
- ETagAttribute.cs
- PersonalizationStateInfo.cs
- StringFreezingAttribute.cs
- BitmapEffectState.cs
- WebPartPersonalization.cs
- PersonalizationStateQuery.cs
- TiffBitmapEncoder.cs
- Size.cs
- WindowsGraphicsWrapper.cs
- DocumentGridContextMenu.cs
- TransactionScope.cs
- ExtendedPropertyCollection.cs
- AsyncResult.cs
- SafeLibraryHandle.cs
- TagMapCollection.cs
- BitmapEffectInput.cs
- ExtendedPropertyCollection.cs
- ComponentConverter.cs
- FrameSecurityDescriptor.cs
- CompiledQueryCacheKey.cs
- BindingEntityInfo.cs
- MergePropertyDescriptor.cs
- BitmapEffectDrawing.cs
- GenericParameterDataContract.cs
- CacheSection.cs
- CodeTypeReference.cs
- SimpleTableProvider.cs
- entityreference_tresulttype.cs
- PTProvider.cs
- PersonalizationAdministration.cs
- NavigatorOutput.cs
- JsonFormatReaderGenerator.cs
- RoutedEvent.cs
- FormatStringEditor.cs
- BinaryConverter.cs
- SspiHelper.cs
- EmbeddedObject.cs
- BaseAddressElement.cs
- PeerCustomResolverBindingElement.cs
- Canonicalizers.cs
- RightsManagementEncryptionTransform.cs
- OutputCacheProfileCollection.cs
- XmlSchemaChoice.cs
- NameSpaceEvent.cs
- ReferencedAssembly.cs
- DiagnosticsElement.cs
- TypeUsageBuilder.cs
- ResolveResponse.cs
- DataGridViewLayoutData.cs
- ScriptRegistrationManager.cs
- ScriptingAuthenticationServiceSection.cs
- HttpListenerRequest.cs
- EmptyImpersonationContext.cs
- RtfToXamlLexer.cs
- PkcsUtils.cs
- SqlRecordBuffer.cs
- PropertyRecord.cs
- DataGridTextBox.cs
- SourceExpressionException.cs
- AuthenticationModuleElementCollection.cs
- CodeDOMUtility.cs
- ProcessModuleDesigner.cs
- ProcessModuleCollection.cs
- PropertyManager.cs