Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / shaperfactoryquerycachekey.cs / 2 / 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
- ElementAction.cs
- TreeViewCancelEvent.cs
- ContextBase.cs
- CodeStatement.cs
- TargetControlTypeAttribute.cs
- RoutedEventHandlerInfo.cs
- PathParser.cs
- ServiceThrottlingBehavior.cs
- RoutedEventHandlerInfo.cs
- SubstitutionList.cs
- HtmlCalendarAdapter.cs
- HostExecutionContextManager.cs
- XpsFontSerializationService.cs
- GridViewColumn.cs
- OverflowException.cs
- ViewCellSlot.cs
- DbProviderManifest.cs
- XPathAxisIterator.cs
- FontFamilyConverter.cs
- ListSortDescription.cs
- RuntimeCompatibilityAttribute.cs
- CryptoConfig.cs
- WebPartConnectionCollection.cs
- SystemKeyConverter.cs
- SoapIncludeAttribute.cs
- DrawingGroup.cs
- Debug.cs
- DefaultHttpHandler.cs
- versioninfo.cs
- MultipleViewPattern.cs
- HttpModule.cs
- SaveFileDialog.cs
- FieldToken.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- WebBrowserProgressChangedEventHandler.cs
- CustomExpressionEventArgs.cs
- validation.cs
- EventLogEntryCollection.cs
- SchemaCollectionPreprocessor.cs
- Double.cs
- XmlSchemaExternal.cs
- JsonEncodingStreamWrapper.cs
- TemplateBindingExtensionConverter.cs
- XXXInfos.cs
- ExtensionWindow.cs
- EditorPart.cs
- InkCollectionBehavior.cs
- TypeDescriptionProviderAttribute.cs
- UriParserTemplates.cs
- PaintValueEventArgs.cs
- LocalizedNameDescriptionPair.cs
- GPPOINTF.cs
- CodeSubDirectoriesCollection.cs
- GAC.cs
- BamlTreeNode.cs
- validation.cs
- MatrixCamera.cs
- XmlCompatibilityReader.cs
- StructuredType.cs
- DirectionalLight.cs
- BitStream.cs
- SqlCacheDependency.cs
- MarkupExtensionParser.cs
- XmlILStorageConverter.cs
- MetadataProperty.cs
- FrameworkTemplate.cs
- ProfileGroupSettingsCollection.cs
- ColorConverter.cs
- TimeoutException.cs
- _ListenerRequestStream.cs
- NumberFunctions.cs
- PropertyGridCommands.cs
- SelectedDatesCollection.cs
- RadioButtonRenderer.cs
- HttpCapabilitiesSectionHandler.cs
- TransactionFlowBindingElementImporter.cs
- SafeSystemMetrics.cs
- Enum.cs
- CustomErrorsSectionWrapper.cs
- ApplicationServiceHelper.cs
- Html32TextWriter.cs
- TransformerTypeCollection.cs
- DataContractSerializerFaultFormatter.cs
- StructuralType.cs
- RC2.cs
- InputLanguageSource.cs
- Section.cs
- TimelineCollection.cs
- LinqDataView.cs
- HandlerBase.cs
- Attachment.cs
- DataStreams.cs
- ActivityBuilder.cs
- Crypto.cs
- HwndHost.cs
- IndexerNameAttribute.cs
- CriticalHandle.cs
- SystemColorTracker.cs
- BamlStream.cs
- SmtpDateTime.cs