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 / Mapping / EntityViewContainer.cs / 1 / 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
- ClaimSet.cs
- ClearCollection.cs
- SafeRightsManagementQueryHandle.cs
- BitSet.cs
- EventRoute.cs
- WsdlInspector.cs
- ConnectorSelectionGlyph.cs
- NonSerializedAttribute.cs
- AlignmentXValidation.cs
- PermissionAttributes.cs
- CodeSubDirectoriesCollection.cs
- StorageScalarPropertyMapping.cs
- TextFindEngine.cs
- ListViewTableCell.cs
- SqlInfoMessageEvent.cs
- ExtensionFile.cs
- _FtpControlStream.cs
- DocumentPageViewAutomationPeer.cs
- _SslSessionsCache.cs
- ZoneButton.cs
- PersonalizationStateInfoCollection.cs
- LinqToSqlWrapper.cs
- NavigateEvent.cs
- OptionalRstParameters.cs
- ScrollBar.cs
- CharacterMetrics.cs
- AttributeExtensions.cs
- basecomparevalidator.cs
- SendingRequestEventArgs.cs
- RsaElement.cs
- SecurityPolicyVersion.cs
- RenderCapability.cs
- Clause.cs
- SolidBrush.cs
- BooleanToVisibilityConverter.cs
- UInt64Storage.cs
- EditingCommands.cs
- TimeSpanConverter.cs
- DefaultHttpHandler.cs
- UIPermission.cs
- GrowingArray.cs
- ToolBarButton.cs
- SchemaImporterExtensionsSection.cs
- DataAdapter.cs
- RequestNavigateEventArgs.cs
- TextStore.cs
- ModelPropertyCollectionImpl.cs
- BinaryCommonClasses.cs
- Cursors.cs
- QilValidationVisitor.cs
- CodeAttributeArgument.cs
- ProvidePropertyAttribute.cs
- HtmlToClrEventProxy.cs
- ActiveXSite.cs
- IResourceProvider.cs
- AlternateViewCollection.cs
- Constraint.cs
- loginstatus.cs
- SoapInteropTypes.cs
- FixedPageAutomationPeer.cs
- IApplicationTrustManager.cs
- RuleCache.cs
- SelectionGlyphBase.cs
- GeneralTransform3D.cs
- MimeObjectFactory.cs
- BamlResourceDeserializer.cs
- ImageFormatConverter.cs
- UICuesEvent.cs
- TreeIterators.cs
- UserMapPath.cs
- SemaphoreSecurity.cs
- KeyNotFoundException.cs
- Mappings.cs
- CodeIdentifiers.cs
- DeleteMemberBinder.cs
- PenCursorManager.cs
- SchemaImporter.cs
- MeshGeometry3D.cs
- EdmToObjectNamespaceMap.cs
- DataControlImageButton.cs
- XmlArrayItemAttributes.cs
- SafeWaitHandle.cs
- CodeTypeParameterCollection.cs
- DLinqDataModelProvider.cs
- DataObjectFieldAttribute.cs
- RefreshEventArgs.cs
- AliasedSlot.cs
- EtwTrace.cs
- Int32Converter.cs
- StringKeyFrameCollection.cs
- ListItemCollection.cs
- FontFamily.cs
- MergeFailedEvent.cs
- HttpFileCollection.cs
- SecUtil.cs
- HashCryptoHandle.cs
- securitycriticaldataClass.cs
- DataControlFieldHeaderCell.cs
- WmlTextViewAdapter.cs
- ObjectFactoryCodeDomTreeGenerator.cs