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
- CompositionAdorner.cs
- EventTask.cs
- PageThemeCodeDomTreeGenerator.cs
- BehaviorEditorPart.cs
- MatrixKeyFrameCollection.cs
- TickBar.cs
- securestring.cs
- XmlQueryRuntime.cs
- OrderByExpression.cs
- QilValidationVisitor.cs
- AssemblyFilter.cs
- AutomationIdentifier.cs
- HTMLTextWriter.cs
- DefaultTextStore.cs
- PointUtil.cs
- BindingUtils.cs
- ResolvedKeyFrameEntry.cs
- GridViewUpdatedEventArgs.cs
- HwndTarget.cs
- XmlSerializer.cs
- PersianCalendar.cs
- SplashScreenNativeMethods.cs
- BufferedResponseStream.cs
- WebBrowsableAttribute.cs
- Emitter.cs
- MetaType.cs
- BoolExpr.cs
- DemultiplexingClientMessageFormatter.cs
- TableDetailsCollection.cs
- LicenseManager.cs
- CircleHotSpot.cs
- EntityDataSourceChangingEventArgs.cs
- Process.cs
- SQLDoubleStorage.cs
- SQLDoubleStorage.cs
- UnsafeNativeMethods.cs
- CodeDirectoryCompiler.cs
- Operator.cs
- Constants.cs
- CacheAxisQuery.cs
- EntityDataSourceState.cs
- SubpageParagraph.cs
- HttpAsyncResult.cs
- RtfFormatStack.cs
- JsonReaderWriterFactory.cs
- FileChangesMonitor.cs
- EntityDataSourceWizardForm.cs
- NamedElement.cs
- AuthenticationModuleElementCollection.cs
- CorrelationService.cs
- DebugViewWriter.cs
- AjaxFrameworkAssemblyAttribute.cs
- DateTimeAutomationPeer.cs
- CompilationRelaxations.cs
- WaitHandleCannotBeOpenedException.cs
- HttpRuntimeSection.cs
- ListViewTableCell.cs
- MenuItemBinding.cs
- AnimatedTypeHelpers.cs
- ViewBox.cs
- DataViewManagerListItemTypeDescriptor.cs
- DateTimeConverter2.cs
- DispatcherExceptionEventArgs.cs
- SqlNode.cs
- HealthMonitoringSection.cs
- DataGridViewTopRowAccessibleObject.cs
- FunctionQuery.cs
- StandardCommandToolStripMenuItem.cs
- ClrPerspective.cs
- SiteIdentityPermission.cs
- ListCollectionView.cs
- CodeTypeMember.cs
- ArrangedElementCollection.cs
- LineInfo.cs
- SeekStoryboard.cs
- ImageCodecInfo.cs
- ISessionStateStore.cs
- SHA1CryptoServiceProvider.cs
- ParallelActivityDesigner.cs
- SortedDictionary.cs
- SecUtil.cs
- ExecutedRoutedEventArgs.cs
- TextBlock.cs
- SchemaMapping.cs
- WriteableBitmap.cs
- InputChannel.cs
- CollectionTypeElement.cs
- UInt32Converter.cs
- ScriptModule.cs
- IisTraceListener.cs
- GifBitmapEncoder.cs
- IISUnsafeMethods.cs
- ResourcesBuildProvider.cs
- WindowsServiceElement.cs
- SortQuery.cs
- MissingMemberException.cs
- PersonalizationStateQuery.cs
- UTF32Encoding.cs
- DataGridViewButtonCell.cs
- InstalledVoice.cs