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
- Label.cs
- StatusBarAutomationPeer.cs
- SQLSingleStorage.cs
- BaseTemplateParser.cs
- DesignerImageAdapter.cs
- Rect3DConverter.cs
- HtmlHead.cs
- UserControlFileEditor.cs
- DbDeleteCommandTree.cs
- JsonReader.cs
- SystemGatewayIPAddressInformation.cs
- WindowsTooltip.cs
- Section.cs
- HandleRef.cs
- PersonalizationAdministration.cs
- LocalizationParserHooks.cs
- MeshGeometry3D.cs
- SoapProtocolReflector.cs
- Lease.cs
- SequentialWorkflowHeaderFooter.cs
- RestHandlerFactory.cs
- RemotingSurrogateSelector.cs
- ObjRef.cs
- ValueUnavailableException.cs
- ClipboardData.cs
- DtdParser.cs
- _AcceptOverlappedAsyncResult.cs
- TextRangeProviderWrapper.cs
- CallTemplateAction.cs
- SpeechAudioFormatInfo.cs
- StringToken.cs
- InvokeGenerator.cs
- Stacktrace.cs
- BufferedOutputStream.cs
- DefaultSection.cs
- XmlQueryStaticData.cs
- StringDictionary.cs
- PointCollection.cs
- ContainerVisual.cs
- BamlTreeMap.cs
- FrameDimension.cs
- PrintingPermissionAttribute.cs
- ToolStripContainer.cs
- DrawingBrush.cs
- ListViewDeletedEventArgs.cs
- ClientFormsIdentity.cs
- ButtonRenderer.cs
- SkinBuilder.cs
- StyleReferenceConverter.cs
- OperationParameterInfoCollection.cs
- DbLambda.cs
- ForEachDesigner.xaml.cs
- ScriptControl.cs
- DateTimeFormatInfo.cs
- MemberInfoSerializationHolder.cs
- ColorPalette.cs
- VerticalAlignConverter.cs
- ColorConvertedBitmap.cs
- CodeArrayIndexerExpression.cs
- RectangleHotSpot.cs
- CodeTypeReference.cs
- GroupPartitionExpr.cs
- ObjectItemCachedAssemblyLoader.cs
- WebDescriptionAttribute.cs
- MaterialGroup.cs
- ParallelTimeline.cs
- ClientUrlResolverWrapper.cs
- RuntimeConfig.cs
- MessageBox.cs
- SharedHttpTransportManager.cs
- CellPartitioner.cs
- Panel.cs
- HMACSHA512.cs
- ReflectionUtil.cs
- ImageListUtils.cs
- CompilerResults.cs
- _LazyAsyncResult.cs
- Latin1Encoding.cs
- RectAnimationClockResource.cs
- GlyphRunDrawing.cs
- XmlUTF8TextWriter.cs
- VisualStyleRenderer.cs
- DefaultMemberAttribute.cs
- _UriSyntax.cs
- BindingCollection.cs
- UnsafeNativeMethodsTablet.cs
- SequenceNumber.cs
- ScaleTransform3D.cs
- WindowsListViewItemStartMenu.cs
- IImplicitResourceProvider.cs
- Matrix3D.cs
- MediaPlayer.cs
- SafeEventLogWriteHandle.cs
- BrushMappingModeValidation.cs
- CroppedBitmap.cs
- ToolTipService.cs
- SpecialFolderEnumConverter.cs
- DataContractSerializer.cs
- PtsContext.cs
- TextRunCache.cs