Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Mapping / EntityViewContainer.cs / 1305376 / EntityViewContainer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Data.Common.Utils; using System.Text; namespace System.Data.Mapping { ////// Base class for the type created at design time to store the generated views. /// public abstract class EntityViewContainer { #region Constructors protected EntityViewContainer() { } #endregion #region fields private string m_storedHashOverMappingClosure; // Hash value over the whole Metadata and Mapping closure private string m_storedhashOverAllExtentViews; // Hash value over all the extent views private string m_storededmEntityContainerName; // C side entity container name private string m_storedStoreEntityContainerName; // S side entity container name private int _viewCount; #endregion #region properties ////// Returns the cached dictionary of (ExtentName,EsqlView) /// internal IEnumerable> ExtentViews { get { for (int i = 0; i < ViewCount; i++) { yield return GetViewAt(i); } } } protected abstract System.Collections.Generic.KeyValuePair GetViewAt(int index); [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] public string EdmEntityContainerName { get { return this.m_storededmEntityContainerName; } set { this.m_storededmEntityContainerName = value; } } public string StoreEntityContainerName { get { return this.m_storedStoreEntityContainerName; } set { this.m_storedStoreEntityContainerName = value; } } public string HashOverMappingClosure { get { return this.m_storedHashOverMappingClosure; } set { this.m_storedHashOverMappingClosure = value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "OverAll")] public string HashOverAllExtentViews { get { return this.m_storedhashOverAllExtentViews; } set { this.m_storedhashOverAllExtentViews = value; } } public int ViewCount { get { return _viewCount; } protected set { _viewCount = value; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Data.Common.Utils; using System.Text; namespace System.Data.Mapping { ////// Base class for the type created at design time to store the generated views. /// public abstract class EntityViewContainer { #region Constructors protected EntityViewContainer() { } #endregion #region fields private string m_storedHashOverMappingClosure; // Hash value over the whole Metadata and Mapping closure private string m_storedhashOverAllExtentViews; // Hash value over all the extent views private string m_storededmEntityContainerName; // C side entity container name private string m_storedStoreEntityContainerName; // S side entity container name private int _viewCount; #endregion #region properties ////// Returns the cached dictionary of (ExtentName,EsqlView) /// internal IEnumerable> ExtentViews { get { for (int i = 0; i < ViewCount; i++) { yield return GetViewAt(i); } } } protected abstract System.Collections.Generic.KeyValuePair GetViewAt(int index); [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] public string EdmEntityContainerName { get { return this.m_storededmEntityContainerName; } set { this.m_storededmEntityContainerName = value; } } public string StoreEntityContainerName { get { return this.m_storedStoreEntityContainerName; } set { this.m_storedStoreEntityContainerName = value; } } public string HashOverMappingClosure { get { return this.m_storedHashOverMappingClosure; } set { this.m_storedHashOverMappingClosure = value; } } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "OverAll")] public string HashOverAllExtentViews { get { return this.m_storedhashOverAllExtentViews; } set { this.m_storedhashOverAllExtentViews = value; } } public int ViewCount { get { return _viewCount; } protected set { _viewCount = value; } } #endregion } } // 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
- Globals.cs
- ImageClickEventArgs.cs
- SafeEventLogWriteHandle.cs
- QueryAccessibilityHelpEvent.cs
- HierarchicalDataSourceControl.cs
- ReferenceList.cs
- XmlWrappingReader.cs
- peernodestatemanager.cs
- Lease.cs
- EntityProviderFactory.cs
- BuiltInExpr.cs
- Span.cs
- HtmlTextViewAdapter.cs
- HashCodeCombiner.cs
- TerminateWorkflow.cs
- InkPresenterAutomationPeer.cs
- TypeForwardedToAttribute.cs
- ConstraintEnumerator.cs
- BulletChrome.cs
- XmlQualifiedName.cs
- SmtpNtlmAuthenticationModule.cs
- HierarchicalDataTemplate.cs
- RepeatBehavior.cs
- PolicyManager.cs
- PropertyHelper.cs
- RuntimeCompatibilityAttribute.cs
- PolicyStatement.cs
- WorkflowQueue.cs
- GenerateDerivedKeyRequest.cs
- SQLBinaryStorage.cs
- SqlDataSourceView.cs
- ParserOptions.cs
- FlowDocumentReader.cs
- GridItemPatternIdentifiers.cs
- CellTreeNodeVisitors.cs
- MsmqReceiveHelper.cs
- HttpCapabilitiesEvaluator.cs
- EntityCommand.cs
- Tablet.cs
- ErrorLog.cs
- EmptyControlCollection.cs
- SafeHandles.cs
- Internal.cs
- EncoderReplacementFallback.cs
- ProgressPage.cs
- KoreanCalendar.cs
- AsymmetricAlgorithm.cs
- NewItemsContextMenuStrip.cs
- WindowsSysHeader.cs
- GroupQuery.cs
- CancelEventArgs.cs
- CodeNamespace.cs
- HitTestParameters.cs
- TagElement.cs
- GraphicsPathIterator.cs
- CookielessHelper.cs
- Button.cs
- DriveInfo.cs
- CornerRadius.cs
- MobileRedirect.cs
- Lookup.cs
- RtfFormatStack.cs
- DeclaredTypeValidator.cs
- IfAction.cs
- HttpListenerRequestUriBuilder.cs
- CodeTypeReferenceSerializer.cs
- RC2.cs
- PathFigureCollection.cs
- AggregateNode.cs
- BamlBinaryReader.cs
- TypeResolvingOptionsAttribute.cs
- DecoratedNameAttribute.cs
- TokenBasedSet.cs
- GlyphManager.cs
- PeerNearMe.cs
- Trigger.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SqlTrackingQuery.cs
- OverlappedAsyncResult.cs
- FrameworkObject.cs
- ProxyGenerationError.cs
- TreeViewImageIndexConverter.cs
- GACMembershipCondition.cs
- TargetException.cs
- IssuerInformation.cs
- PropertyToken.cs
- InkCanvasFeedbackAdorner.cs
- RankException.cs
- WebPartsSection.cs
- CopyEncoder.cs
- SqlMetaData.cs
- UnknownWrapper.cs
- RawStylusActions.cs
- NetworkInterface.cs
- CheckBox.cs
- SqlDataSourceStatusEventArgs.cs
- ViewBox.cs
- XmlSchemaSimpleContentExtension.cs
- AttributeUsageAttribute.cs
- QueryAccessibilityHelpEvent.cs