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
- RawStylusInputCustomDataList.cs
- AssociationSetEnd.cs
- CodeTypeMemberCollection.cs
- TreeWalker.cs
- Fonts.cs
- DateTime.cs
- Soap11ServerProtocol.cs
- Misc.cs
- EntityReference.cs
- TextElementEnumerator.cs
- ToolStripDropDownMenu.cs
- EdmPropertyAttribute.cs
- ColorInterpolationModeValidation.cs
- MemoryResponseElement.cs
- DbDataSourceEnumerator.cs
- Base64Decoder.cs
- CompModHelpers.cs
- ObjectPersistData.cs
- HtmlInputCheckBox.cs
- ControllableStoryboardAction.cs
- StrokeCollectionDefaultValueFactory.cs
- SystemTcpConnection.cs
- CaseInsensitiveHashCodeProvider.cs
- StrokeCollectionDefaultValueFactory.cs
- WindowsListView.cs
- DataServiceException.cs
- SafeSecurityHelper.cs
- TypeAccessException.cs
- DataGridCell.cs
- StateManagedCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- NameTable.cs
- UnsafeNativeMethods.cs
- XmlNamedNodeMap.cs
- BasicHttpBindingElement.cs
- MultipartContentParser.cs
- StorageMappingItemLoader.cs
- EnvelopedPkcs7.cs
- XmlC14NWriter.cs
- RuntimeIdentifierPropertyAttribute.cs
- BamlVersionHeader.cs
- StringSource.cs
- SqlDataSourceFilteringEventArgs.cs
- LogLogRecordHeader.cs
- XmlSchemaSimpleContent.cs
- EnumValidator.cs
- FormViewRow.cs
- UncommonField.cs
- DBAsyncResult.cs
- CertificateManager.cs
- XmlBinaryReaderSession.cs
- SystemIPGlobalStatistics.cs
- UIElementHelper.cs
- ProcessStartInfo.cs
- XmlArrayItemAttribute.cs
- Button.cs
- CodeThrowExceptionStatement.cs
- ExtensionMethods.cs
- DataFormats.cs
- HelpProvider.cs
- mda.cs
- WorkflowEventArgs.cs
- DependencyObjectCodeDomSerializer.cs
- BitmapEffectDrawing.cs
- RawStylusInputCustomDataList.cs
- SerialPort.cs
- AdCreatedEventArgs.cs
- KeyGestureValueSerializer.cs
- NumericUpDownAcceleration.cs
- RegexRunnerFactory.cs
- ToolStripPanelRenderEventArgs.cs
- CodeDOMUtility.cs
- SoapAttributeOverrides.cs
- PageVisual.cs
- BitmapVisualManager.cs
- ProtocolsSection.cs
- FixedSOMPageConstructor.cs
- listitem.cs
- Win32Native.cs
- SelectionProviderWrapper.cs
- SchemaTypeEmitter.cs
- SafeSecurityHandles.cs
- InputLanguageCollection.cs
- IMembershipProvider.cs
- XmlSortKeyAccumulator.cs
- DataColumnChangeEvent.cs
- RewritingPass.cs
- WebPartConnectionsCancelVerb.cs
- DataGridViewRowStateChangedEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- Error.cs
- TypeElement.cs
- Transform3D.cs
- UInt32Converter.cs
- DBSchemaTable.cs
- ListView.cs
- DataProtection.cs
- CqlQuery.cs
- OneOf.cs
- XPathNavigatorReader.cs