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
- HtmlTable.cs
- ADConnectionHelper.cs
- SafeArchiveContext.cs
- EventDriven.cs
- SafeFindHandle.cs
- SafeEventLogWriteHandle.cs
- HttpApplicationFactory.cs
- XPathDocumentIterator.cs
- ImageMap.cs
- HostedBindingBehavior.cs
- BamlStream.cs
- Compensate.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DoubleStorage.cs
- WebPartCloseVerb.cs
- BitmapEffectGeneralTransform.cs
- FileVersionInfo.cs
- BindingCollection.cs
- EventItfInfo.cs
- QueryValue.cs
- QueueProcessor.cs
- LongValidator.cs
- LinqDataSourceHelper.cs
- FtpRequestCacheValidator.cs
- TypeSystem.cs
- UntypedNullExpression.cs
- HebrewNumber.cs
- RegexCharClass.cs
- ScriptingScriptResourceHandlerSection.cs
- HtmlObjectListAdapter.cs
- SimpleType.cs
- xsdvalidator.cs
- SiteMap.cs
- Latin1Encoding.cs
- ComboBox.cs
- FastEncoderWindow.cs
- AggregateException.cs
- GregorianCalendar.cs
- OverflowException.cs
- RuleSettings.cs
- WindowProviderWrapper.cs
- CodePageUtils.cs
- ObjectQueryExecutionPlan.cs
- RenderContext.cs
- GraphicsPathIterator.cs
- SmtpReplyReaderFactory.cs
- ServicePointManager.cs
- FormViewUpdatedEventArgs.cs
- SqlBuffer.cs
- XmlMembersMapping.cs
- PageContentAsyncResult.cs
- XmlQueryContext.cs
- LocatorManager.cs
- ViewBase.cs
- ReadOnlyAttribute.cs
- ObservableDictionary.cs
- EntityProxyTypeInfo.cs
- Substitution.cs
- DbMetaDataFactory.cs
- InputReportEventArgs.cs
- Trigger.cs
- CodeMethodInvokeExpression.cs
- EntityViewGenerationConstants.cs
- GeneralTransformCollection.cs
- TrackingAnnotationCollection.cs
- DrawingImage.cs
- GCHandleCookieTable.cs
- MatcherBuilder.cs
- XmlWrappingReader.cs
- StructuredProperty.cs
- TextBoxDesigner.cs
- SoapFault.cs
- XmlSchemaAttribute.cs
- SiteMapSection.cs
- CategoryGridEntry.cs
- SecurityTokenValidationException.cs
- DateTimeSerializationSection.cs
- ColorContext.cs
- sqlmetadatafactory.cs
- FixedDocument.cs
- FixedSOMPageConstructor.cs
- OperationCanceledException.cs
- LicenseException.cs
- StreamWithDictionary.cs
- BamlStream.cs
- Stroke2.cs
- SectionUpdates.cs
- NameScopePropertyAttribute.cs
- DnsPermission.cs
- DataServiceKeyAttribute.cs
- InvokerUtil.cs
- DetailsViewCommandEventArgs.cs
- FormsAuthenticationCredentials.cs
- StringTraceRecord.cs
- ObjectConverter.cs
- ThicknessAnimationUsingKeyFrames.cs
- MappingException.cs
- MissingMemberException.cs
- HtmlToClrEventProxy.cs
- XamlRtfConverter.cs