Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WindowAutomationPeer.cs
- oledbmetadatacollectionnames.cs
- HtmlTableCell.cs
- DiscoveryClientBindingElement.cs
- DataObjectMethodAttribute.cs
- CounterSetInstanceCounterDataSet.cs
- XPathDocument.cs
- odbcmetadatacollectionnames.cs
- SiteMapNodeItem.cs
- ConnectionsZone.cs
- WebPartTransformerAttribute.cs
- TextBoxBase.cs
- ScrollableControl.cs
- UnmanagedHandle.cs
- TextEffectCollection.cs
- HtmlTable.cs
- JapaneseLunisolarCalendar.cs
- AutomationPattern.cs
- PageContent.cs
- ExpressionBuilderCollection.cs
- MLangCodePageEncoding.cs
- RadioButton.cs
- TextClipboardData.cs
- PropertyStore.cs
- SqlTypesSchemaImporter.cs
- ProxyAttribute.cs
- ObjectViewEntityCollectionData.cs
- DescendantBaseQuery.cs
- DefaultPrintController.cs
- ToolstripProfessionalRenderer.cs
- ValidationRuleCollection.cs
- DataSetUtil.cs
- HttpConfigurationContext.cs
- Collection.cs
- XmlSchemaCompilationSettings.cs
- ConnectionManagementElement.cs
- XmlSchemaObject.cs
- MarkupExtensionParser.cs
- MessageHeaders.cs
- RunInstallerAttribute.cs
- PopupRootAutomationPeer.cs
- BindUriHelper.cs
- AdRotator.cs
- RegionData.cs
- CancellationTokenSource.cs
- AnimatedTypeHelpers.cs
- FastEncoderWindow.cs
- FilterUserControlBase.cs
- Propagator.cs
- RequestUriProcessor.cs
- InputQueue.cs
- LocatorPart.cs
- RootBrowserWindowAutomationPeer.cs
- TimeEnumHelper.cs
- ProtectedProviderSettings.cs
- Lease.cs
- DbConnectionStringCommon.cs
- FlowLayoutSettings.cs
- SynchronizationContext.cs
- StatusBarPanelClickEvent.cs
- XsltFunctions.cs
- Module.cs
- ContextStaticAttribute.cs
- SqlInfoMessageEvent.cs
- SqlComparer.cs
- GeometryModel3D.cs
- StringComparer.cs
- XmlByteStreamReader.cs
- StopStoryboard.cs
- Control.cs
- ColorContext.cs
- ContourSegment.cs
- WebConfigurationFileMap.cs
- SoapRpcMethodAttribute.cs
- PackageRelationship.cs
- TagMapInfo.cs
- SpellerHighlightLayer.cs
- AccessControlEntry.cs
- DataGridColumnFloatingHeader.cs
- FixedDSBuilder.cs
- PasswordTextContainer.cs
- Selection.cs
- Identifier.cs
- RuntimeResourceSet.cs
- StorageAssociationTypeMapping.cs
- ExpressionVisitor.cs
- WebAdminConfigurationHelper.cs
- SortKey.cs
- XmlSchemaNotation.cs
- GridViewCommandEventArgs.cs
- ActivityInstanceReference.cs
- GridViewRowPresenter.cs
- XPathScanner.cs
- SwitchLevelAttribute.cs
- Property.cs
- SortedSet.cs
- ValidationErrorCollection.cs
- RootBrowserWindowProxy.cs
- Stopwatch.cs
- MediaEntryAttribute.cs