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 / shaperfactoryquerycachekey.cs / 1 / shaperfactoryquerycachekey.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //----------------------------------------------------------------------------- using System.Diagnostics; using System.Data.Objects; namespace System.Data.Common.QueryCache { internal class ShaperFactoryQueryCacheKey: QueryCacheKey { private readonly string _columnMapKey; private readonly MergeOption _mergeOption; private readonly bool _isValueLayer; internal ShaperFactoryQueryCacheKey(string columnMapKey, MergeOption mergeOption, bool isValueLayer) { Debug.Assert(null != columnMapKey, "null columnMapKey"); _columnMapKey = columnMapKey; _mergeOption = mergeOption; _isValueLayer = isValueLayer; } public override bool Equals(object obj) { var other = obj as ShaperFactoryQueryCacheKey ; if (null == other) { return false; } return this._columnMapKey.Equals(other._columnMapKey, _stringComparison) && this._mergeOption == other._mergeOption && this._isValueLayer == other._isValueLayer; } public override int GetHashCode() { return _columnMapKey.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //----------------------------------------------------------------------------- using System.Diagnostics; using System.Data.Objects; namespace System.Data.Common.QueryCache { internal class ShaperFactoryQueryCacheKey: QueryCacheKey { private readonly string _columnMapKey; private readonly MergeOption _mergeOption; private readonly bool _isValueLayer; internal ShaperFactoryQueryCacheKey(string columnMapKey, MergeOption mergeOption, bool isValueLayer) { Debug.Assert(null != columnMapKey, "null columnMapKey"); _columnMapKey = columnMapKey; _mergeOption = mergeOption; _isValueLayer = isValueLayer; } public override bool Equals(object obj) { var other = obj as ShaperFactoryQueryCacheKey ; if (null == other) { return false; } return this._columnMapKey.Equals(other._columnMapKey, _stringComparison) && this._mergeOption == other._mergeOption && this._isValueLayer == other._isValueLayer; } public override int GetHashCode() { return _columnMapKey.GetHashCode(); } } } // 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
- DataView.cs
- DynamicAttribute.cs
- SchemaManager.cs
- KoreanLunisolarCalendar.cs
- DataGridViewBindingCompleteEventArgs.cs
- ColumnTypeConverter.cs
- Asn1Utilities.cs
- DataGridCheckBoxColumn.cs
- webeventbuffer.cs
- ValidationManager.cs
- IntellisenseTextBox.designer.cs
- ManipulationPivot.cs
- SoapConverter.cs
- Sql8ExpressionRewriter.cs
- AuthenticationManager.cs
- SqlDataSourceEnumerator.cs
- TextPointerBase.cs
- SqlMethodAttribute.cs
- FrameworkContextData.cs
- Viewport3DVisual.cs
- AssemblyAttributesGoHere.cs
- PathFigureCollection.cs
- Int32RectConverter.cs
- JavascriptCallbackBehaviorAttribute.cs
- PeerInputChannelListener.cs
- MonthCalendar.cs
- ValueQuery.cs
- FrugalMap.cs
- HtmlTitle.cs
- SafeThreadHandle.cs
- EntityViewGenerationAttribute.cs
- UInt16Storage.cs
- PathFigure.cs
- XmlHelper.cs
- TextFindEngine.cs
- PhysicalAddress.cs
- CLSCompliantAttribute.cs
- XmlSchemaSimpleTypeList.cs
- RangeEnumerable.cs
- ZipIOModeEnforcingStream.cs
- CompoundFileDeflateTransform.cs
- SettingsProviderCollection.cs
- AddressingVersion.cs
- Win32.cs
- SignedXml.cs
- SqlDataSourceCustomCommandEditor.cs
- ToggleButton.cs
- XmlSchemaSimpleTypeUnion.cs
- UIElement.cs
- AttributeQuery.cs
- SQLConvert.cs
- BitmapPalettes.cs
- SqlServer2KCompatibilityAnnotation.cs
- _ConnectStream.cs
- XmlSchemaInferenceException.cs
- FieldBuilder.cs
- Util.cs
- OletxDependentTransaction.cs
- UIInitializationException.cs
- EventHandlerList.cs
- ScrollBar.cs
- WebPartChrome.cs
- ToolboxItemImageConverter.cs
- DataGridViewSelectedRowCollection.cs
- HtmlToClrEventProxy.cs
- XmlSchemaResource.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CodeCatchClause.cs
- OracleColumn.cs
- Stack.cs
- Blend.cs
- Paragraph.cs
- SqlNamer.cs
- ClusterRegistryConfigurationProvider.cs
- TableCellCollection.cs
- Parameter.cs
- FontDifferentiator.cs
- DispatcherExceptionEventArgs.cs
- CqlIdentifiers.cs
- FormClosedEvent.cs
- GradientBrush.cs
- EntitySetRetriever.cs
- Rotation3D.cs
- GlyphRunDrawing.cs
- TerminatorSinks.cs
- WebPartConnectionCollection.cs
- SchemaImporterExtension.cs
- SolidBrush.cs
- LookupBindingPropertiesAttribute.cs
- XmlEventCache.cs
- FolderBrowserDialog.cs
- ProtectedConfigurationProviderCollection.cs
- Facet.cs
- DataGridCellInfo.cs
- DataGridCellsPanel.cs
- RegexCode.cs
- TableItemPatternIdentifiers.cs
- SectionXmlInfo.cs
- ErrorCodes.cs
- ipaddressinformationcollection.cs