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
- WebPartUserCapability.cs
- Brush.cs
- ProxyGenerationError.cs
- Object.cs
- SQLResource.cs
- TeredoHelper.cs
- AttributeEmitter.cs
- ClientApiGenerator.cs
- TypeResolvingOptionsAttribute.cs
- HttpStreamXmlDictionaryReader.cs
- DbConnectionPoolOptions.cs
- ObjectQueryProvider.cs
- WinEventWrap.cs
- DesigntimeLicenseContextSerializer.cs
- ThaiBuddhistCalendar.cs
- ZipIOModeEnforcingStream.cs
- DataGridViewRowPrePaintEventArgs.cs
- SendKeys.cs
- Calendar.cs
- SpinWait.cs
- AxHost.cs
- OdbcCommand.cs
- GraphicsPath.cs
- HijriCalendar.cs
- AxisAngleRotation3D.cs
- ReadOnlyDataSourceView.cs
- UriTemplateVariableQueryValue.cs
- TreeBuilder.cs
- SqlProcedureAttribute.cs
- QueueProcessor.cs
- UIElement3D.cs
- MailMessageEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- TypeConverterHelper.cs
- WebServiceMethodData.cs
- TextElementEnumerator.cs
- SurrogateEncoder.cs
- XmlWriter.cs
- XMLSyntaxException.cs
- HttpCachePolicy.cs
- ProfileSection.cs
- TemplateInstanceAttribute.cs
- DataObject.cs
- HttpSysSettings.cs
- OdbcCommandBuilder.cs
- FixedPage.cs
- ArrayConverter.cs
- WsdlBuildProvider.cs
- HwndAppCommandInputProvider.cs
- DataSetMappper.cs
- NewItemsContextMenuStrip.cs
- iisPickupDirectory.cs
- ViewValidator.cs
- JsonWriter.cs
- DependencyObjectValidator.cs
- _SecureChannel.cs
- HttpStreamMessage.cs
- DataRowView.cs
- RuntimeEnvironment.cs
- ActiveDocumentEvent.cs
- SettingsSection.cs
- SQLCharsStorage.cs
- ListViewDeleteEventArgs.cs
- AccessDataSource.cs
- PriorityBindingExpression.cs
- FixedSchema.cs
- UpdateTranslator.cs
- WebMessageEncodingElement.cs
- DataGridViewUtilities.cs
- BitFlagsGenerator.cs
- CopyOfAction.cs
- IsolatedStoragePermission.cs
- ObjectDataSourceStatusEventArgs.cs
- __FastResourceComparer.cs
- AssemblyCache.cs
- TrustManagerMoreInformation.cs
- EpmSyndicationContentDeSerializer.cs
- OutputCacheSettings.cs
- DesignerSerializationOptionsAttribute.cs
- WaitForChangedResult.cs
- SQLInt32Storage.cs
- DataSourceHelper.cs
- AttachedAnnotationChangedEventArgs.cs
- DriveNotFoundException.cs
- DbSourceParameterCollection.cs
- IProducerConsumerCollection.cs
- UInt64Converter.cs
- CounterCreationDataCollection.cs
- OutOfProcStateClientManager.cs
- RTTrackingProfile.cs
- CultureInfo.cs
- SqlTypesSchemaImporter.cs
- EntitySqlQueryState.cs
- ArrayEditor.cs
- XmlMapping.cs
- SqlDataSourceEnumerator.cs
- HtmlEncodedRawTextWriter.cs
- StylesEditorDialog.cs
- WebBrowserContainer.cs
- LogEntryUtils.cs