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
- UnsafeNativeMethods.cs
- SpellCheck.cs
- RtfNavigator.cs
- SymLanguageType.cs
- ExplicitDiscriminatorMap.cs
- XmlSchemas.cs
- SamlDoNotCacheCondition.cs
- LocalizableAttribute.cs
- FormsAuthenticationUser.cs
- CodeGenerationManager.cs
- BuildTopDownAttribute.cs
- ValueExpressions.cs
- MailAddressCollection.cs
- WebPartMenuStyle.cs
- ApplicationServicesHostFactory.cs
- ChannelOptions.cs
- InlineCollection.cs
- XmlUnspecifiedAttribute.cs
- WebBrowserContainer.cs
- MaskedTextBoxDesignerActionList.cs
- ToolBarTray.cs
- BitmapInitialize.cs
- DataTableReader.cs
- XmlDataSourceView.cs
- RectangleHotSpot.cs
- BitStream.cs
- TextEffectResolver.cs
- XmlValidatingReader.cs
- ISAPIRuntime.cs
- LinkedList.cs
- DiscoveryProxy.cs
- XPathDocument.cs
- SafeTimerHandle.cs
- WebPartVerbCollection.cs
- AttributeEmitter.cs
- SystemFonts.cs
- Geometry3D.cs
- CannotUnloadAppDomainException.cs
- FloaterBaseParagraph.cs
- WsatAdminException.cs
- BitmapCodecInfoInternal.cs
- WebPartHeaderCloseVerb.cs
- LogicalTreeHelper.cs
- ToolBarPanel.cs
- NameNode.cs
- QueueProcessor.cs
- XPathExpr.cs
- SvcMapFile.cs
- OpacityConverter.cs
- XPathDocumentIterator.cs
- ProfileSection.cs
- MessageSecurityOverHttp.cs
- ListViewCommandEventArgs.cs
- CreateCardRequest.cs
- EventItfInfo.cs
- XmlEventCache.cs
- DataBoundControlHelper.cs
- PageCodeDomTreeGenerator.cs
- MessagePropertyDescription.cs
- ScrollPattern.cs
- Int32.cs
- GridViewItemAutomationPeer.cs
- ActivationServices.cs
- ObjectDataProvider.cs
- ServiceInfo.cs
- ExpressionServices.cs
- SecurityElementBase.cs
- DataGridPagerStyle.cs
- CommandBinding.cs
- DbInsertCommandTree.cs
- ClockController.cs
- MergeExecutor.cs
- AssemblyInfo.cs
- WorkflowInstanceSuspendedRecord.cs
- XmlWellformedWriter.cs
- ParallelQuery.cs
- OracleFactory.cs
- EffectiveValueEntry.cs
- DesignerAutoFormatStyle.cs
- ScriptControlDescriptor.cs
- ObjectView.cs
- SQLMoneyStorage.cs
- PanelDesigner.cs
- MethodBuilder.cs
- WS2007FederationHttpBinding.cs
- DataGridColumnHeaderCollection.cs
- RubberbandSelector.cs
- SemaphoreSlim.cs
- ListViewDataItem.cs
- TransformedBitmap.cs
- ChildChangedEventArgs.cs
- TemplateXamlTreeBuilder.cs
- HyperLinkColumn.cs
- CacheHelper.cs
- AnimationException.cs
- StyleSheetComponentEditor.cs
- OutOfProcStateClientManager.cs
- XmlSignatureManifest.cs
- SplineQuaternionKeyFrame.cs
- Baml2006ReaderSettings.cs