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
- HtmlDocument.cs
- Pair.cs
- MouseEventArgs.cs
- PointHitTestResult.cs
- SafeNativeMethodsCLR.cs
- IncrementalHitTester.cs
- BasicHttpSecurityMode.cs
- HyperLink.cs
- CatalogPartChrome.cs
- ArgumentReference.cs
- CodeNamespaceCollection.cs
- WpfGeneratedKnownTypes.cs
- CreateDataSourceDialog.cs
- EntityViewGenerationAttribute.cs
- OperationAbortedException.cs
- XmlAttributes.cs
- FontDialog.cs
- sqlinternaltransaction.cs
- UpDownBase.cs
- RNGCryptoServiceProvider.cs
- NextPreviousPagerField.cs
- TextLineBreak.cs
- QilLiteral.cs
- XmlBoundElement.cs
- FontStretches.cs
- VirtualDirectoryMappingCollection.cs
- MetabaseServerConfig.cs
- RegexMatch.cs
- Merger.cs
- ScalarConstant.cs
- HttpHandlersSection.cs
- ComContractElementCollection.cs
- NullExtension.cs
- ADMembershipProvider.cs
- SqlNodeAnnotation.cs
- OleDbPermission.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ExtentCqlBlock.cs
- SystemWebCachingSectionGroup.cs
- ListBoxItemAutomationPeer.cs
- MessagingDescriptionAttribute.cs
- IDispatchConstantAttribute.cs
- BezierSegment.cs
- DataControlButton.cs
- ThreadStaticAttribute.cs
- JsonQNameDataContract.cs
- CriticalFinalizerObject.cs
- MessagePartProtectionMode.cs
- FontCacheUtil.cs
- SmtpNtlmAuthenticationModule.cs
- DataGridViewCellCancelEventArgs.cs
- BinaryOperationBinder.cs
- InvalidProgramException.cs
- CompositionAdorner.cs
- SecurityManager.cs
- remotingproxy.cs
- WorkItem.cs
- SourceInterpreter.cs
- Debug.cs
- URLIdentityPermission.cs
- TreeNodeSelectionProcessor.cs
- ValidationHelpers.cs
- SafeThreadHandle.cs
- WindowsSysHeader.cs
- TextMarkerSource.cs
- WebPartZone.cs
- BoundField.cs
- URIFormatException.cs
- ObjectPersistData.cs
- ToolbarAUtomationPeer.cs
- CaseInsensitiveHashCodeProvider.cs
- BamlRecordHelper.cs
- ConnectionManagementElement.cs
- ListCollectionView.cs
- MatchingStyle.cs
- GlobalizationSection.cs
- StorageFunctionMapping.cs
- RegexStringValidatorAttribute.cs
- SystemEvents.cs
- DynamicDocumentPaginator.cs
- SmtpSection.cs
- OciEnlistContext.cs
- PhonemeConverter.cs
- SortedList.cs
- ServerValidateEventArgs.cs
- IconBitmapDecoder.cs
- UnsafeNativeMethods.cs
- BamlRecordWriter.cs
- HtmlProps.cs
- XmlDataSource.cs
- RowBinding.cs
- XmlDocumentType.cs
- XpsS0ValidatingLoader.cs
- ConditionedDesigner.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Rectangle.cs
- ThicknessAnimation.cs
- SystemColors.cs
- Convert.cs
- InstalledFontCollection.cs