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
- ProxyAttribute.cs
- LiteralDesigner.cs
- UrlAuthorizationModule.cs
- ResourceAttributes.cs
- CustomCredentialPolicy.cs
- PageRequestManager.cs
- NumericExpr.cs
- Point3DAnimation.cs
- GetFileNameResult.cs
- Pointer.cs
- InvalidDataException.cs
- WeakReadOnlyCollection.cs
- SoapException.cs
- SchemaCreator.cs
- DrawingContextDrawingContextWalker.cs
- StateMachineSubscriptionManager.cs
- LicenseContext.cs
- ConstraintConverter.cs
- SQLChars.cs
- TypePresenter.xaml.cs
- RectangleHotSpot.cs
- LinkUtilities.cs
- recordstatefactory.cs
- _FixedSizeReader.cs
- ByteAnimation.cs
- brushes.cs
- WindowsListViewScroll.cs
- ObjectSpanRewriter.cs
- WebPart.cs
- FirstMatchCodeGroup.cs
- EntityDataSourceValidationException.cs
- DataBinding.cs
- RoutedEventArgs.cs
- FastEncoder.cs
- StorageAssociationTypeMapping.cs
- WebRequestModuleElement.cs
- ListItemParagraph.cs
- ExceptionRoutedEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- TextPenaltyModule.cs
- Point3DCollection.cs
- DebugHandleTracker.cs
- SyntaxCheck.cs
- LogicalTreeHelper.cs
- NetNamedPipeSecurity.cs
- DataGridColumnCollection.cs
- FormatSettings.cs
- InputLanguageCollection.cs
- Pkcs9Attribute.cs
- DecoderReplacementFallback.cs
- AccessDataSource.cs
- SQLCharsStorage.cs
- Console.cs
- SimplePropertyEntry.cs
- ObservableCollection.cs
- ConfigXmlWhitespace.cs
- SelectionBorderGlyph.cs
- IISUnsafeMethods.cs
- ObjectListItem.cs
- LifetimeServices.cs
- LinkDescriptor.cs
- InstanceOwnerException.cs
- ActivationService.cs
- MetaDataInfo.cs
- MessageQueueEnumerator.cs
- ComNativeDescriptor.cs
- MetafileHeaderWmf.cs
- RegionData.cs
- ClusterSafeNativeMethods.cs
- MetadataItemSerializer.cs
- EntityCommand.cs
- Win32Exception.cs
- EditorPartChrome.cs
- FormViewPagerRow.cs
- FixedFindEngine.cs
- AttributeUsageAttribute.cs
- ScrollChrome.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CurrencyWrapper.cs
- EpmSyndicationContentDeSerializer.cs
- FormViewRow.cs
- SchemaMapping.cs
- DataRecordInternal.cs
- WinEventWrap.cs
- ResourcesBuildProvider.cs
- TrackingDataItem.cs
- _AcceptOverlappedAsyncResult.cs
- MemberAssignment.cs
- ManagedCodeMarkers.cs
- SerializerProvider.cs
- ItemType.cs
- URLIdentityPermission.cs
- EventProviderTraceListener.cs
- CompilerError.cs
- RuntimeConfig.cs
- ScriptReferenceEventArgs.cs
- ScrollChrome.cs
- CompressEmulationStream.cs
- PropertyChangedEventArgs.cs
- MethodAccessException.cs