Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / ViewGenResults.cs / 1305376 / ViewGenResults.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Data.Metadata.Edm; using System.Data.Mapping.ViewGeneration.Structures; using System.Data.EntityModel; using System.Collections.Generic; using System.Text; namespace System.Data.Mapping.ViewGeneration { // This class is responsible for keeping track of the results from view // generation - errors and correct views internal class ViewGenResults : InternalBase { #region Constructor internal ViewGenResults() { m_views = new KeyToListMap(EqualityComparer .Default); m_errorLog = new ErrorLog(); } #endregion #region Fields private KeyToListMap m_views; private ErrorLog m_errorLog; #endregion #region Properties // effects: Returns the generated views internal KeyToListMap Views { get { return m_views; } } // effects: Returns the errors that were generated. If no errors, // returns an empty list [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // referenced (indirectly) by System.Data.Entity.Design.dll internal IEnumerable Errors { get { return m_errorLog.Errors; } } // effects: Returns true iff any error was generated internal bool HasErrors { get { return m_errorLog.Count > 0; } } #endregion #region Methods // effects: Add the set of errors in errorLog to this internal void AddErrors(ErrorLog errorLog) { m_errorLog.Merge(errorLog); } // effects: Returns all the errors as a string (not to be used for // end user strings, i.e., in exceptions etc) internal string ErrorsToString() { return m_errorLog.ToString(); } internal override void ToCompactString(StringBuilder builder) { // Number of views builder.Append(m_errorLog.Count); builder.Append(" "); // Print the errors only m_errorLog.ToCompactString(builder); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Data.Metadata.Edm; using System.Data.Mapping.ViewGeneration.Structures; using System.Data.EntityModel; using System.Collections.Generic; using System.Text; namespace System.Data.Mapping.ViewGeneration { // This class is responsible for keeping track of the results from view // generation - errors and correct views internal class ViewGenResults : InternalBase { #region Constructor internal ViewGenResults() { m_views = new KeyToListMap(EqualityComparer .Default); m_errorLog = new ErrorLog(); } #endregion #region Fields private KeyToListMap m_views; private ErrorLog m_errorLog; #endregion #region Properties // effects: Returns the generated views internal KeyToListMap Views { get { return m_views; } } // effects: Returns the errors that were generated. If no errors, // returns an empty list [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // referenced (indirectly) by System.Data.Entity.Design.dll internal IEnumerable Errors { get { return m_errorLog.Errors; } } // effects: Returns true iff any error was generated internal bool HasErrors { get { return m_errorLog.Count > 0; } } #endregion #region Methods // effects: Add the set of errors in errorLog to this internal void AddErrors(ErrorLog errorLog) { m_errorLog.Merge(errorLog); } // effects: Returns all the errors as a string (not to be used for // end user strings, i.e., in exceptions etc) internal string ErrorsToString() { return m_errorLog.ToString(); } internal override void ToCompactString(StringBuilder builder) { // Number of views builder.Append(m_errorLog.Count); builder.Append(" "); // Print the errors only m_errorLog.ToCompactString(builder); } #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
- COM2ComponentEditor.cs
- XmlSchemaImport.cs
- AddDataControlFieldDialog.cs
- WindowsGraphics2.cs
- CredentialCache.cs
- UnicodeEncoding.cs
- CqlErrorHelper.cs
- ToolTipAutomationPeer.cs
- TimerExtension.cs
- LogicalTreeHelper.cs
- SpecularMaterial.cs
- ObjectQueryExecutionPlan.cs
- TransactionContextValidator.cs
- TableItemStyle.cs
- UpdateRecord.cs
- dbenumerator.cs
- SqlNodeAnnotation.cs
- EventLogTraceListener.cs
- RegistrySecurity.cs
- KerberosTicketHashIdentifierClause.cs
- ParameterElementCollection.cs
- SqlConnection.cs
- TriggerAction.cs
- ProfileParameter.cs
- CatalogZone.cs
- ContentElement.cs
- CodeDomConfigurationHandler.cs
- TypeSystem.cs
- ProfileSettings.cs
- XmlNamespaceDeclarationsAttribute.cs
- QilSortKey.cs
- ServiceHost.cs
- DocumentCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- ECDiffieHellman.cs
- ValidationSummary.cs
- Ipv6Element.cs
- OleDbPropertySetGuid.cs
- AddInIpcChannel.cs
- OrderedDictionaryStateHelper.cs
- FixedTextBuilder.cs
- EpmSourcePathSegment.cs
- DataServiceRequestArgs.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ControlPaint.cs
- QilUnary.cs
- RelatedEnd.cs
- CellParaClient.cs
- RandomNumberGenerator.cs
- MailAddress.cs
- TimeManager.cs
- TextDecorationCollection.cs
- Shape.cs
- CachedPathData.cs
- Emitter.cs
- XmlConverter.cs
- XmlObjectSerializerReadContextComplex.cs
- ConnectionManagementElement.cs
- MobileUserControlDesigner.cs
- ToolStripItemGlyph.cs
- RtType.cs
- XmlHelper.cs
- CheckedPointers.cs
- CodeCompileUnit.cs
- OraclePermissionAttribute.cs
- PassportAuthenticationModule.cs
- EndPoint.cs
- LocalizationCodeDomSerializer.cs
- XsltSettings.cs
- X509Certificate2Collection.cs
- TextContainerChangeEventArgs.cs
- NoClickablePointException.cs
- AssemblyLoader.cs
- base64Transforms.cs
- XmlSchemaSimpleContent.cs
- TripleDESCryptoServiceProvider.cs
- COM2TypeInfoProcessor.cs
- SqlNodeTypeOperators.cs
- ThreadSafeMessageFilterTable.cs
- FileStream.cs
- WCFModelStrings.Designer.cs
- odbcmetadatafactory.cs
- ComponentEditorForm.cs
- formatter.cs
- OdbcUtils.cs
- DecoderReplacementFallback.cs
- UIElement.cs
- SiteMapSection.cs
- IIS7UserPrincipal.cs
- Container.cs
- MultipleViewProviderWrapper.cs
- SpeechEvent.cs
- Bits.cs
- InterleavedZipPartStream.cs
- CompilerGeneratedAttribute.cs
- SqlFacetAttribute.cs
- RankException.cs
- NamespaceEmitter.cs
- InsufficientMemoryException.cs
- KnownBoxes.cs