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
- CodeConditionStatement.cs
- ColumnMapCopier.cs
- SimpleBitVector32.cs
- ScrollBar.cs
- PlatformCulture.cs
- BatchParser.cs
- DataBoundControlAdapter.cs
- SqlEnums.cs
- SelectionProcessor.cs
- CopyNamespacesAction.cs
- SecurityPolicySection.cs
- ThemeableAttribute.cs
- GridViewRowPresenter.cs
- ListBox.cs
- HtmlHead.cs
- AlphaSortedEnumConverter.cs
- BindUriHelper.cs
- StorageInfo.cs
- FrugalMap.cs
- PlaceHolder.cs
- LineBreak.cs
- EntityDataSource.cs
- ObjectIDGenerator.cs
- SetIterators.cs
- SettingsBindableAttribute.cs
- DbConnectionOptions.cs
- ToolStripCustomTypeDescriptor.cs
- Rect3DValueSerializer.cs
- JsonMessageEncoderFactory.cs
- Viewport3DAutomationPeer.cs
- WebEventTraceProvider.cs
- BaseDataBoundControl.cs
- XmlSchemaRedefine.cs
- ReflectTypeDescriptionProvider.cs
- EditableTreeList.cs
- MimeParameter.cs
- SqlIdentifier.cs
- IpcChannel.cs
- XslException.cs
- DefaultValueTypeConverter.cs
- Rule.cs
- PolicyException.cs
- PageParserFilter.cs
- FontFamily.cs
- LicenseProviderAttribute.cs
- DrawingContext.cs
- CombinedGeometry.cs
- TextEditorLists.cs
- Int32Animation.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SoapReflectionImporter.cs
- TileModeValidation.cs
- ViewEvent.cs
- SEHException.cs
- LicFileLicenseProvider.cs
- AtomServiceDocumentSerializer.cs
- IndentTextWriter.cs
- ListViewPagedDataSource.cs
- DataGridViewCell.cs
- FontCacheUtil.cs
- TimeSpanMinutesConverter.cs
- SoapAttributeAttribute.cs
- WindowsRichEditRange.cs
- Path.cs
- ByteStorage.cs
- OlePropertyStructs.cs
- TCEAdapterGenerator.cs
- AuthenticatedStream.cs
- QueryCreatedEventArgs.cs
- BufferBuilder.cs
- RichTextBox.cs
- WebRequestModuleElement.cs
- TranslateTransform3D.cs
- StatusBarDrawItemEvent.cs
- XmlIlGenerator.cs
- VScrollProperties.cs
- ResourceCategoryAttribute.cs
- validation.cs
- JpegBitmapDecoder.cs
- DataGridColumnCollection.cs
- BufferedReadStream.cs
- DataGridViewButtonCell.cs
- DependentList.cs
- ToolStripItemTextRenderEventArgs.cs
- RNGCryptoServiceProvider.cs
- ProgressChangedEventArgs.cs
- FormViewCommandEventArgs.cs
- ProcessThreadCollection.cs
- AudioLevelUpdatedEventArgs.cs
- BindingNavigator.cs
- DragEvent.cs
- HMACSHA384.cs
- SnapshotChangeTrackingStrategy.cs
- OdbcPermission.cs
- IdentityModelDictionary.cs
- ToolStripCodeDomSerializer.cs
- StreamResourceInfo.cs
- ActiveXHelper.cs
- VisualTreeUtils.cs
- PassportAuthentication.cs