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
- Events.cs
- ToolStripDesignerUtils.cs
- ControlBindingsCollection.cs
- X509ClientCertificateAuthenticationElement.cs
- TableCellAutomationPeer.cs
- XPathArrayIterator.cs
- LineBreakRecord.cs
- ListenDesigner.cs
- DataGridRowClipboardEventArgs.cs
- WindowsScrollBarBits.cs
- DataGridCommandEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- DataGridViewComboBoxColumn.cs
- ResourceExpressionEditor.cs
- XamlGridLengthSerializer.cs
- OracleInternalConnection.cs
- XPathDocumentBuilder.cs
- ArraySortHelper.cs
- CommandExpr.cs
- LogicalExpr.cs
- XmlSchemaResource.cs
- PersistNameAttribute.cs
- RemoteWebConfigurationHostServer.cs
- PackageRelationship.cs
- SecurityTokenException.cs
- SoapProcessingBehavior.cs
- Section.cs
- ImageSourceConverter.cs
- odbcmetadatacollectionnames.cs
- TimeZone.cs
- WebPartActionVerb.cs
- ClientUrlResolverWrapper.cs
- DataGridItemEventArgs.cs
- DataGridTableCollection.cs
- LineUtil.cs
- BypassElement.cs
- CanExecuteRoutedEventArgs.cs
- MetadataArtifactLoader.cs
- SecureUICommand.cs
- SessionPageStatePersister.cs
- SizeChangedInfo.cs
- SchemaLookupTable.cs
- ParserHooks.cs
- TraceSwitch.cs
- TaiwanLunisolarCalendar.cs
- OLEDB_Enum.cs
- RunWorkerCompletedEventArgs.cs
- DataServiceRequest.cs
- Process.cs
- QualifiedId.cs
- InvokeMemberBinder.cs
- ResXResourceReader.cs
- WebPartEditorOkVerb.cs
- AttributeEmitter.cs
- ModuleConfigurationInfo.cs
- ExpressionVisitor.cs
- GradientStop.cs
- Int32Collection.cs
- XmlSerializationGeneratedCode.cs
- SqlProfileProvider.cs
- PropertyToken.cs
- ITreeGenerator.cs
- SafeNativeMethods.cs
- MinimizableAttributeTypeConverter.cs
- PeerEndPoint.cs
- NGCSerializationManagerAsync.cs
- HtmlTable.cs
- DetailsViewModeEventArgs.cs
- DocumentXmlWriter.cs
- ContentAlignmentEditor.cs
- Application.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TypeGeneratedEventArgs.cs
- AssemblyBuilderData.cs
- ValueQuery.cs
- AuthenticationService.cs
- MetadataProperty.cs
- DefaultCompensation.cs
- AsyncPostBackErrorEventArgs.cs
- TraceListeners.cs
- ReferencedCollectionType.cs
- UIHelper.cs
- ColorMatrix.cs
- DiscriminatorMap.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Rect3DConverter.cs
- IDReferencePropertyAttribute.cs
- activationcontext.cs
- WindowsFont.cs
- RankException.cs
- Vector3DValueSerializer.cs
- RijndaelManagedTransform.cs
- MessageEnumerator.cs
- RadioButtonList.cs
- SymLanguageType.cs
- SchemaCompiler.cs
- DesignerProperties.cs
- Debug.cs
- EntityDataSourceMemberPath.cs
- ConstantCheck.cs