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
- ToolStripPanelRenderEventArgs.cs
- DesignerDataStoredProcedure.cs
- ServiceOperationHelpers.cs
- FlagsAttribute.cs
- KnownColorTable.cs
- ComponentManagerBroker.cs
- DurableRuntimeValidator.cs
- OracleNumber.cs
- BindingManagerDataErrorEventArgs.cs
- mediaeventargs.cs
- Thumb.cs
- MutableAssemblyCacheEntry.cs
- SafeRightsManagementEnvironmentHandle.cs
- NativeMethods.cs
- LocalizableAttribute.cs
- WpfKnownTypeInvoker.cs
- DeclarativeCatalogPart.cs
- EmptyEnumerable.cs
- ResourceDisplayNameAttribute.cs
- TdsParameterSetter.cs
- ButtonBase.cs
- PageRanges.cs
- MeshGeometry3D.cs
- QueryOutputWriter.cs
- SpecularMaterial.cs
- Automation.cs
- TypeToken.cs
- RepeatButton.cs
- ArrayExtension.cs
- ToolStripDropTargetManager.cs
- RadialGradientBrush.cs
- SystemFonts.cs
- ColumnCollection.cs
- FormsAuthentication.cs
- PageCodeDomTreeGenerator.cs
- ObjectQueryProvider.cs
- TextEditorDragDrop.cs
- CodeIterationStatement.cs
- DockPattern.cs
- ParameterElementCollection.cs
- SqlConnectionPoolProviderInfo.cs
- XhtmlBasicSelectionListAdapter.cs
- NetCodeGroup.cs
- SequentialOutput.cs
- AstTree.cs
- DSASignatureFormatter.cs
- GPPOINT.cs
- XmlElement.cs
- CalendarDay.cs
- HttpChannelHelper.cs
- UInt16Converter.cs
- ServicesUtilities.cs
- StatusStrip.cs
- ProgressBarRenderer.cs
- ExceptionHandler.cs
- NativeWindow.cs
- UrlParameterReader.cs
- SafeEventHandle.cs
- PropertyMetadata.cs
- TcpConnectionPoolSettings.cs
- TraceSection.cs
- DoubleKeyFrameCollection.cs
- ShapingWorkspace.cs
- AnnotationResourceChangedEventArgs.cs
- SafeBitVector32.cs
- SourceInterpreter.cs
- IdentityNotMappedException.cs
- CommunicationObjectManager.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- FixedTextView.cs
- StringUtil.cs
- FreezableCollection.cs
- TextRenderer.cs
- SerializationException.cs
- MimeObjectFactory.cs
- AssemblySettingAttributes.cs
- CheckBoxBaseAdapter.cs
- StringResourceManager.cs
- DateTimeOffsetStorage.cs
- AsyncWaitHandle.cs
- MeasureItemEvent.cs
- KerberosRequestorSecurityToken.cs
- QueryOutputWriter.cs
- EUCJPEncoding.cs
- Itemizer.cs
- CachedTypeface.cs
- DataGridViewSortCompareEventArgs.cs
- Viewport3DVisual.cs
- DataServiceHostWrapper.cs
- SqlConnection.cs
- DbDataAdapter.cs
- TemplatedControlDesigner.cs
- WebZone.cs
- PageBuildProvider.cs
- EntityCommandExecutionException.cs
- AutomationAttributeInfo.cs
- IndentedTextWriter.cs
- CodeSnippetExpression.cs
- CacheMemory.cs
- WebPartCatalogAddVerb.cs