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
- TagPrefixInfo.cs
- NameValueCache.cs
- DateTimeOffsetStorage.cs
- TextEditorTyping.cs
- ExtendedProperty.cs
- AQNBuilder.cs
- DataGridViewCellCollection.cs
- ItemCheckEvent.cs
- AxHost.cs
- EmptyStringExpandableObjectConverter.cs
- Pens.cs
- TypeUsageBuilder.cs
- FilteredDataSetHelper.cs
- XmlSchemaSimpleContent.cs
- SectionRecord.cs
- ServiceModelEnumValidator.cs
- Decoder.cs
- HTTPNotFoundHandler.cs
- CategoryEditor.cs
- InstanceCreationEditor.cs
- TextEditorDragDrop.cs
- DrawingContext.cs
- DBSqlParser.cs
- _AutoWebProxyScriptHelper.cs
- HandleCollector.cs
- XhtmlConformanceSection.cs
- CharacterBufferReference.cs
- PermissionSetTriple.cs
- DataGridCellItemAutomationPeer.cs
- LineSegment.cs
- WebPartTransformerAttribute.cs
- ExpressionParser.cs
- WebServiceResponse.cs
- StylusButtonCollection.cs
- webbrowsersite.cs
- GridErrorDlg.cs
- NameNode.cs
- DrawingAttributes.cs
- EndpointNotFoundException.cs
- HostingEnvironmentSection.cs
- TreeViewImageKeyConverter.cs
- PasswordBox.cs
- _BaseOverlappedAsyncResult.cs
- UIElementAutomationPeer.cs
- WebPartConnectionsDisconnectVerb.cs
- _Rfc2616CacheValidators.cs
- NameTable.cs
- GlobalEventManager.cs
- CompilationRelaxations.cs
- LineServicesCallbacks.cs
- UIElementParagraph.cs
- QilReplaceVisitor.cs
- PackageStore.cs
- DataServiceContext.cs
- OleDbError.cs
- QueryCacheEntry.cs
- AttributeCollection.cs
- Image.cs
- URLMembershipCondition.cs
- NumberFunctions.cs
- StorageComplexTypeMapping.cs
- ActiveXSite.cs
- Number.cs
- CapabilitiesUse.cs
- FixUp.cs
- MultipartContentParser.cs
- WebPartsPersonalization.cs
- StringPropertyBuilder.cs
- COM2Properties.cs
- StylusDownEventArgs.cs
- TreeViewCancelEvent.cs
- ValidatorUtils.cs
- SslStream.cs
- PeerPresenceInfo.cs
- MarkupCompiler.cs
- MatrixCamera.cs
- __FastResourceComparer.cs
- Stream.cs
- ListControl.cs
- SmtpNetworkElement.cs
- XmlQueryRuntime.cs
- ResourceDescriptionAttribute.cs
- cache.cs
- FontStretch.cs
- NonClientArea.cs
- BaseCodeDomTreeGenerator.cs
- XappLauncher.cs
- CompilerInfo.cs
- AnimationClock.cs
- SuppressIldasmAttribute.cs
- ObjectList.cs
- ControlCommandSet.cs
- SqlMethodCallConverter.cs
- XmlDocumentSchema.cs
- OutOfProcStateClientManager.cs
- RepeatButtonAutomationPeer.cs
- DataGridViewRowPrePaintEventArgs.cs
- QilFactory.cs
- HyperLinkColumn.cs
- BitmapSizeOptions.cs