Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Mapping / EntityViewContainer.cs / 3 / 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
- BaseTemplateParser.cs
- ActivityBuilder.cs
- ExtensionsSection.cs
- HiddenField.cs
- SiteMapDataSourceView.cs
- VisualStyleRenderer.cs
- BindingUtils.cs
- DataListCommandEventArgs.cs
- ListViewContainer.cs
- ParserStreamGeometryContext.cs
- GridSplitter.cs
- MessageParameterAttribute.cs
- InkCanvasSelection.cs
- CodeDirectionExpression.cs
- VirtualPathProvider.cs
- TextBoxAutoCompleteSourceConverter.cs
- ResourcesChangeInfo.cs
- typedescriptorpermissionattribute.cs
- EtwTrace.cs
- AutomationElementCollection.cs
- QueuePathDialog.cs
- Calendar.cs
- SqlClientWrapperSmiStreamChars.cs
- InlineUIContainer.cs
- ChtmlTextWriter.cs
- BaseDataList.cs
- IItemProperties.cs
- DataGridViewCellStyleBuilderDialog.cs
- PageRouteHandler.cs
- ExpressionServices.cs
- Converter.cs
- XmlILCommand.cs
- TrackingMemoryStream.cs
- ListChangedEventArgs.cs
- DataRowChangeEvent.cs
- MenuScrollingVisibilityConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- StrongNameMembershipCondition.cs
- SessionState.cs
- _RequestLifetimeSetter.cs
- LinearGradientBrush.cs
- DrawListViewItemEventArgs.cs
- SourceElementsCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- FormView.cs
- SystemGatewayIPAddressInformation.cs
- Floater.cs
- BitmapInitialize.cs
- InspectionWorker.cs
- LabelDesigner.cs
- NoResizeSelectionBorderGlyph.cs
- SmiEventStream.cs
- TextElementCollectionHelper.cs
- DataGridViewRowPrePaintEventArgs.cs
- StorageEntitySetMapping.cs
- Polyline.cs
- Variant.cs
- CultureInfoConverter.cs
- SingleAnimation.cs
- WebBrowserNavigatedEventHandler.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TypeExtensionConverter.cs
- TextParagraphCache.cs
- WinFormsSpinner.cs
- ServiceContractGenerationContext.cs
- GuidelineCollection.cs
- regiisutil.cs
- FontFamilyValueSerializer.cs
- TextPatternIdentifiers.cs
- DataGridViewRowCancelEventArgs.cs
- TagNameToTypeMapper.cs
- QuaternionAnimationBase.cs
- EpmContentDeSerializerBase.cs
- CfgArc.cs
- SkipQueryOptionExpression.cs
- ConstructorNeedsTagAttribute.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- MobileTextWriter.cs
- ParameterCollection.cs
- Axis.cs
- Margins.cs
- OptionUsage.cs
- DecodeHelper.cs
- ItemContainerGenerator.cs
- ImageIndexEditor.cs
- DecoratedNameAttribute.cs
- SqlTypesSchemaImporter.cs
- CurrencyWrapper.cs
- UIElementIsland.cs
- Attributes.cs
- SecurityManager.cs
- DataBoundLiteralControl.cs
- LogReserveAndAppendState.cs
- DesignerAttribute.cs
- ImageDrawing.cs
- OrCondition.cs
- ExtensionFile.cs
- ZipFileInfo.cs
- DispatcherExceptionEventArgs.cs
- OdbcConnectionPoolProviderInfo.cs