Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Mapping / EntityViewContainer.cs / 2 / 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
- DockPattern.cs
- CodeDomConfigurationHandler.cs
- TemplatePartAttribute.cs
- ConversionValidationRule.cs
- EntityClassGenerator.cs
- WindowsListViewGroup.cs
- ControlBuilderAttribute.cs
- Nullable.cs
- TreeNodeStyle.cs
- PolyBezierSegmentFigureLogic.cs
- ListViewItemEventArgs.cs
- DPCustomTypeDescriptor.cs
- documentsequencetextcontainer.cs
- IndexerNameAttribute.cs
- PackagingUtilities.cs
- EntitySqlQueryCacheKey.cs
- ThreadAbortException.cs
- CommonGetThemePartSize.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DetailsView.cs
- StorageModelBuildProvider.cs
- ListItemCollection.cs
- ObjectListItemCollection.cs
- ContainerActivationHelper.cs
- SerialErrors.cs
- CodeNamespaceImportCollection.cs
- HMACSHA384.cs
- webproxy.cs
- NativeMethods.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SafeNativeMethodsMilCoreApi.cs
- EastAsianLunisolarCalendar.cs
- AstTree.cs
- MobilePage.cs
- ResourceSet.cs
- CategoryGridEntry.cs
- NetCodeGroup.cs
- TheQuery.cs
- WindowsSolidBrush.cs
- ProcessModuleCollection.cs
- PeerPresenceInfo.cs
- CodeExporter.cs
- Point.cs
- URLString.cs
- ByteBufferPool.cs
- AssemblyAssociatedContentFileAttribute.cs
- TokenBasedSet.cs
- IsolatedStorageFilePermission.cs
- HttpException.cs
- WebPartVerbCollection.cs
- CompilerTypeWithParams.cs
- Opcode.cs
- Menu.cs
- KoreanCalendar.cs
- MultiSelector.cs
- SynchronizedDispatch.cs
- cookiecontainer.cs
- CodeTypeDeclaration.cs
- XmlnsPrefixAttribute.cs
- SqlXmlStorage.cs
- XmlSerializerNamespaces.cs
- XmlAttributeOverrides.cs
- FormatVersion.cs
- BindValidator.cs
- __Error.cs
- DbParameterCollectionHelper.cs
- SequenceFullException.cs
- HttpHandlerActionCollection.cs
- ArraySubsetEnumerator.cs
- StringBlob.cs
- SmtpFailedRecipientsException.cs
- HtmlMeta.cs
- GridViewHeaderRowPresenter.cs
- Padding.cs
- ScriptReference.cs
- PagerStyle.cs
- ResourceProperty.cs
- DefaultShape.cs
- Token.cs
- ProjectionCamera.cs
- VarRefManager.cs
- Vector3DCollection.cs
- MetadataPropertyCollection.cs
- MethodMessage.cs
- DefaultValueTypeConverter.cs
- StickyNoteAnnotations.cs
- LingerOption.cs
- RoutingConfiguration.cs
- UmAlQuraCalendar.cs
- UserPersonalizationStateInfo.cs
- LifetimeServices.cs
- SecurityDescriptor.cs
- RequestCachePolicy.cs
- XmlDocumentFragment.cs
- PerspectiveCamera.cs
- ProcessModelSection.cs
- WhitespaceSignificantCollectionAttribute.cs
- ServiceNameElement.cs
- NameValuePair.cs
- RectangleGeometry.cs