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
- PEFileEvidenceFactory.cs
- ZipIOExtraFieldPaddingElement.cs
- SpinWait.cs
- EntityDataSourceValidationException.cs
- DetailsViewUpdateEventArgs.cs
- RotateTransform3D.cs
- SerializationHelper.cs
- MetadataHelper.cs
- DataGridPagerStyle.cs
- ConfigurationElement.cs
- BitmapDownload.cs
- Camera.cs
- SharedConnectionWorkflowTransactionService.cs
- DataGridTable.cs
- CellRelation.cs
- TextTreeNode.cs
- DataSourceControl.cs
- PropertyGroupDescription.cs
- ErrorHandler.cs
- AspCompat.cs
- StringFunctions.cs
- AudioFormatConverter.cs
- unitconverter.cs
- _FtpControlStream.cs
- Registration.cs
- PrimarySelectionAdorner.cs
- SpotLight.cs
- LocalServiceSecuritySettingsElement.cs
- PointCollectionConverter.cs
- CustomTypeDescriptor.cs
- PeerEndPoint.cs
- DataGridColumnHeader.cs
- MenuAutomationPeer.cs
- ListViewAutomationPeer.cs
- ServicePointManagerElement.cs
- DatatypeImplementation.cs
- HttpContext.cs
- ConfigurationLocation.cs
- WebMessageEncodingBindingElement.cs
- ClientSponsor.cs
- FunctionQuery.cs
- PointValueSerializer.cs
- XmlDownloadManager.cs
- EmbeddedObject.cs
- DoWhileDesigner.xaml.cs
- EventLogEntryCollection.cs
- DefaultValidator.cs
- Cursor.cs
- ArrayTypeMismatchException.cs
- XmlArrayAttribute.cs
- EpmContentDeSerializer.cs
- WorkflowDispatchContext.cs
- securitymgrsite.cs
- BitmapEffectInput.cs
- BamlReader.cs
- ToolStripDropDown.cs
- SocketStream.cs
- OpenTypeCommon.cs
- CharEntityEncoderFallback.cs
- SiteMapNodeCollection.cs
- WebPartZoneBase.cs
- ViewGenResults.cs
- XmlILTrace.cs
- TcpHostedTransportConfiguration.cs
- NetCodeGroup.cs
- X509ChainPolicy.cs
- EntityTypeBase.cs
- BulletChrome.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- CounterCreationDataCollection.cs
- SqlParameterizer.cs
- FixedPageStructure.cs
- UserControl.cs
- PropertyGridView.cs
- ProviderBase.cs
- ContourSegment.cs
- AssociatedControlConverter.cs
- PropertyTab.cs
- NativeDirectoryServicesQueryAPIs.cs
- IsolatedStorage.cs
- ReadWriteObjectLock.cs
- SecurityManager.cs
- CancellableEnumerable.cs
- CoTaskMemHandle.cs
- GcHandle.cs
- WindowsNonControl.cs
- ObjectStorage.cs
- ScrollContentPresenter.cs
- RadialGradientBrush.cs
- Command.cs
- TranslateTransform3D.cs
- EntityDesignerUtils.cs
- ImmutableObjectAttribute.cs
- KeyBinding.cs
- DynamicQueryableWrapper.cs
- Trace.cs
- DocumentXPathNavigator.cs
- DbProviderServices.cs
- ToolStripContainerDesigner.cs
- XpsThumbnail.cs