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
- NavigationEventArgs.cs
- StylusPointProperties.cs
- SemanticTag.cs
- x509store.cs
- HttpListenerPrefixCollection.cs
- XhtmlCssHandler.cs
- TemplateBindingExpression.cs
- CodeAccessPermission.cs
- IndexExpression.cs
- BitmapCacheBrush.cs
- EventItfInfo.cs
- DecoderBestFitFallback.cs
- CodeCatchClause.cs
- AbstractSvcMapFileLoader.cs
- OleDbCommandBuilder.cs
- StateChangeEvent.cs
- NullableDoubleSumAggregationOperator.cs
- DetailsViewCommandEventArgs.cs
- DurationConverter.cs
- ExpressionReplacer.cs
- TraceContext.cs
- TreeSet.cs
- FormsAuthenticationConfiguration.cs
- WebPartEditorApplyVerb.cs
- OracleBFile.cs
- TypeConverter.cs
- SqlBinder.cs
- BuildProviderUtils.cs
- AuthenticatedStream.cs
- DateTimePickerDesigner.cs
- RegexGroupCollection.cs
- ChtmlPhoneCallAdapter.cs
- XmlBinaryReader.cs
- _Connection.cs
- WorkflowInstanceExtensionProvider.cs
- ConfigurationSectionCollection.cs
- StylusPointProperties.cs
- AssociationEndMember.cs
- ListViewGroupConverter.cs
- FilterEventArgs.cs
- ModelPropertyCollectionImpl.cs
- KeySpline.cs
- XmlConverter.cs
- XamlToRtfParser.cs
- VersionedStream.cs
- XmlChoiceIdentifierAttribute.cs
- WebAdminConfigurationHelper.cs
- GeometryHitTestParameters.cs
- CodeGroup.cs
- UpdateExpressionVisitor.cs
- SqlWorkflowPersistenceService.cs
- RawStylusInputReport.cs
- FloaterBaseParagraph.cs
- DateTimeValueSerializerContext.cs
- MetafileHeaderWmf.cs
- MemberRestriction.cs
- MarshalByValueComponent.cs
- Clause.cs
- XmlSignificantWhitespace.cs
- StubHelpers.cs
- FilterElement.cs
- SerializationSectionGroup.cs
- PageAsyncTask.cs
- BitmapEffectInput.cs
- MethodImplAttribute.cs
- ToolboxItemFilterAttribute.cs
- DtrList.cs
- DrawingVisual.cs
- ToolStripDropDownItem.cs
- XmlAutoDetectWriter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SafeCoTaskMem.cs
- SchemaCollectionPreprocessor.cs
- SqlExpander.cs
- PerformanceCounterManager.cs
- DataGridColumn.cs
- GradientBrush.cs
- ErrorStyle.cs
- Util.cs
- infer.cs
- Rectangle.cs
- QilUnary.cs
- StructuredTypeEmitter.cs
- ItemCollection.cs
- ButtonAutomationPeer.cs
- GraphicsState.cs
- SendKeys.cs
- MethodToken.cs
- CanExecuteRoutedEventArgs.cs
- _ShellExpression.cs
- KeyProperty.cs
- DesignerActionUIService.cs
- MenuItemBindingCollection.cs
- FixedTextContainer.cs
- OdbcDataAdapter.cs
- Clipboard.cs
- OleDbException.cs
- NativeObjectSecurity.cs
- XPathSingletonIterator.cs
- AutoResetEvent.cs