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
- ModifierKeysValueSerializer.cs
- RowUpdatingEventArgs.cs
- PointHitTestResult.cs
- ElementsClipboardData.cs
- InstanceDataCollection.cs
- OleDbCommand.cs
- SessionStateContainer.cs
- DBDataPermission.cs
- oledbmetadatacollectionnames.cs
- IIS7WorkerRequest.cs
- IndicShape.cs
- ComplexTypeEmitter.cs
- TextHidden.cs
- ReverseInheritProperty.cs
- WebException.cs
- VisualStateManager.cs
- ManipulationPivot.cs
- HtmlControl.cs
- TypeDependencyAttribute.cs
- KeySplineConverter.cs
- SqlDataReader.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataGridRowsPresenter.cs
- DispatcherEventArgs.cs
- FocusWithinProperty.cs
- SynchronizationScope.cs
- ImageSourceValueSerializer.cs
- CodeAccessSecurityEngine.cs
- BaseDataList.cs
- AutoSizeToolBoxItem.cs
- Helpers.cs
- TextTreePropertyUndoUnit.cs
- DeleteCardRequest.cs
- PenLineJoinValidation.cs
- XhtmlBasicListAdapter.cs
- CheckBoxList.cs
- BlurEffect.cs
- Root.cs
- DependencyObjectPropertyDescriptor.cs
- Icon.cs
- TextElementEnumerator.cs
- DataGrid.cs
- NonBatchDirectoryCompiler.cs
- QuaternionRotation3D.cs
- TypeDescriptionProvider.cs
- Padding.cs
- WebBrowser.cs
- ResetableIterator.cs
- SafeLibraryHandle.cs
- ScrollBarRenderer.cs
- TransformerInfoCollection.cs
- EntityContainerEmitter.cs
- BaseUriHelper.cs
- _CookieModule.cs
- OperationAbortedException.cs
- PreservationFileWriter.cs
- WmlTextBoxAdapter.cs
- ZipIOLocalFileDataDescriptor.cs
- DbDataAdapter.cs
- XmlSchemaSimpleTypeRestriction.cs
- SettingsSavedEventArgs.cs
- InheritanceContextChangedEventManager.cs
- _KerberosClient.cs
- TranslateTransform3D.cs
- ConstraintEnumerator.cs
- SafeNativeMethods.cs
- ResolvedKeyFrameEntry.cs
- HashCodeCombiner.cs
- XmlAggregates.cs
- ErrorTableItemStyle.cs
- HyperLink.cs
- WorkflowServiceHostFactory.cs
- OAVariantLib.cs
- CryptoHandle.cs
- XPathMessageFilterElementComparer.cs
- PhoneCallDesigner.cs
- TrackingStringDictionary.cs
- TextProviderWrapper.cs
- UITypeEditor.cs
- IdentityReference.cs
- DbParameterHelper.cs
- AttributeCollection.cs
- ServiceNameCollection.cs
- ServiceEndpointElementCollection.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- XmlDataSource.cs
- DesignTimeParseData.cs
- XmlUtil.cs
- NetworkInformationException.cs
- __Filters.cs
- BoundingRectTracker.cs
- ReflectionUtil.cs
- DataSourceHelper.cs
- SchemaImporterExtension.cs
- ModuleElement.cs
- StringInfo.cs
- StsCommunicationException.cs
- NullableDoubleSumAggregationOperator.cs
- MarginsConverter.cs