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
- InternalConfigHost.cs
- PrivilegedConfigurationManager.cs
- ToolStripItemEventArgs.cs
- XpsInterleavingPolicy.cs
- ReadOnlyMetadataCollection.cs
- SpeechUI.cs
- UriTemplateVariablePathSegment.cs
- ObjectNotFoundException.cs
- TextParaClient.cs
- DataBoundControlHelper.cs
- XamlClipboardData.cs
- Point3DValueSerializer.cs
- EdgeModeValidation.cs
- AnnouncementService.cs
- Point3DCollection.cs
- GeneralTransform3D.cs
- Expressions.cs
- SafeCancelMibChangeNotify.cs
- AssemblyAttributes.cs
- DeclarativeCatalogPart.cs
- Style.cs
- PrimitiveDataContract.cs
- PeerCustomResolverBindingElement.cs
- RoleServiceManager.cs
- XmlDigitalSignatureProcessor.cs
- OrCondition.cs
- Soap11ServerProtocol.cs
- GridViewRowCollection.cs
- ZeroOpNode.cs
- Script.cs
- UIElementCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- HWStack.cs
- TypeGeneratedEventArgs.cs
- DependencyObject.cs
- ListViewDataItem.cs
- Light.cs
- _SslStream.cs
- GacUtil.cs
- TriggerCollection.cs
- XmlBoundElement.cs
- UserControlDesigner.cs
- SoapSchemaExporter.cs
- GPStream.cs
- MergePropertyDescriptor.cs
- Frame.cs
- XmlAttributeHolder.cs
- MailMessage.cs
- ScrollBar.cs
- XmlSecureResolver.cs
- DynamicILGenerator.cs
- TypedReference.cs
- securitycriticaldata.cs
- Oid.cs
- WindowCollection.cs
- Faults.cs
- ItemType.cs
- EventSetter.cs
- WinFormsSecurity.cs
- PackageDigitalSignatureManager.cs
- OutputCacheProfile.cs
- AutomationAttributeInfo.cs
- MarkupWriter.cs
- UriSection.cs
- BitmapImage.cs
- SQLInt32.cs
- FacetEnabledSchemaElement.cs
- AssertUtility.cs
- IndexerNameAttribute.cs
- ScalarOps.cs
- linebase.cs
- DataServiceRequestException.cs
- ListBox.cs
- TransformDescriptor.cs
- TaskFormBase.cs
- WebPartCatalogAddVerb.cs
- LogicalTreeHelper.cs
- Pens.cs
- SourceSwitch.cs
- SessionStateUtil.cs
- SkipStoryboardToFill.cs
- EdmMember.cs
- DataGridViewRowCollection.cs
- RecordsAffectedEventArgs.cs
- XmlNodeList.cs
- BitmapMetadataBlob.cs
- ItemType.cs
- BasicHttpSecurity.cs
- SuppressMessageAttribute.cs
- MailWebEventProvider.cs
- WebResponse.cs
- SizeChangedEventArgs.cs
- AssemblyResourceLoader.cs
- ChangeNode.cs
- BasePropertyDescriptor.cs
- UrlAuthFailureHandler.cs
- BindingListCollectionView.cs
- AddressHeaderCollectionElement.cs
- FunctionDescription.cs
- DataGridViewAdvancedBorderStyle.cs