Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / shaperfactoryquerycachekey.cs / 1305376 / shaperfactoryquerycachekey.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- 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 [....] // @backupOwner [....] //----------------------------------------------------------------------------- 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
- UmAlQuraCalendar.cs
- SqlDataReader.cs
- Models.cs
- Int16AnimationBase.cs
- OutOfProcStateClientManager.cs
- DbSource.cs
- PingOptions.cs
- XmlSchemaSet.cs
- DataGridRowHeaderAutomationPeer.cs
- ToolboxItemFilterAttribute.cs
- ProvidersHelper.cs
- AsymmetricAlgorithm.cs
- RtfToXamlReader.cs
- ActivityXamlServices.cs
- AxParameterData.cs
- WsiProfilesElement.cs
- TemplateField.cs
- DbConnectionPoolCounters.cs
- AlgoModule.cs
- DecimalAnimationBase.cs
- WeakReferenceList.cs
- IERequestCache.cs
- SwitchElementsCollection.cs
- List.cs
- DataControlFieldCell.cs
- StdValidatorsAndConverters.cs
- SafeReadContext.cs
- Lease.cs
- OverrideMode.cs
- TraceContextRecord.cs
- UnknownBitmapEncoder.cs
- DbProviderFactory.cs
- IPAddress.cs
- Point3DCollection.cs
- ProcessHost.cs
- LongCountAggregationOperator.cs
- AssemblyEvidenceFactory.cs
- Header.cs
- DbProviderFactories.cs
- CustomAttributeSerializer.cs
- WizardStepCollectionEditor.cs
- BaseTemplatedMobileComponentEditor.cs
- WindowsTokenRoleProvider.cs
- OracleParameter.cs
- VisualBrush.cs
- Application.cs
- DataTablePropertyDescriptor.cs
- TableTextElementCollectionInternal.cs
- MonthCalendar.cs
- XmlTextReader.cs
- ClientConfigPaths.cs
- COM2ICategorizePropertiesHandler.cs
- BackStopAuthenticationModule.cs
- EdmItemCollection.cs
- NativeActivity.cs
- EventlogProvider.cs
- StructuralObject.cs
- RecognizerStateChangedEventArgs.cs
- QilFunction.cs
- SecurityUniqueId.cs
- panel.cs
- HttpProfileGroupBase.cs
- XmlSchemaSimpleTypeRestriction.cs
- CacheOutputQuery.cs
- DesignerCapabilities.cs
- DbDataAdapter.cs
- DrawListViewColumnHeaderEventArgs.cs
- Frame.cs
- HMACSHA256.cs
- AutomationPatternInfo.cs
- UnauthorizedWebPart.cs
- FreezableCollection.cs
- SecurityTokenProvider.cs
- HtmlInputReset.cs
- IsolatedStorageFile.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FileDialogCustomPlace.cs
- DataSourceControlBuilder.cs
- ListViewCancelEventArgs.cs
- ProcessInfo.cs
- InstancePersistenceException.cs
- DynamicResourceExtension.cs
- AnnotationResourceCollection.cs
- M3DUtil.cs
- SecurityToken.cs
- ImagingCache.cs
- CodeIterationStatement.cs
- TableSectionStyle.cs
- DataControlFieldHeaderCell.cs
- HtmlInputRadioButton.cs
- EventNotify.cs
- FixedSOMElement.cs
- PropertiesTab.cs
- ConfigurationProperty.cs
- PackWebResponse.cs
- FixedSOMTableCell.cs
- AutomationIdentifier.cs
- DocumentReferenceCollection.cs
- XmlFormatExtensionPrefixAttribute.cs
- StreamUpdate.cs