Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RunInstallerAttribute.cs
- ToolStripManager.cs
- CodeCommentStatement.cs
- FixedElement.cs
- Panel.cs
- CheckedPointers.cs
- DesignerVerb.cs
- PrintDialogException.cs
- FontStretch.cs
- ListCollectionView.cs
- InstanceNotReadyException.cs
- AnnotationComponentChooser.cs
- METAHEADER.cs
- PageParser.cs
- SqlServices.cs
- NextPreviousPagerField.cs
- ExtensionSimplifierMarkupObject.cs
- Section.cs
- XmlSchemaException.cs
- PartManifestEntry.cs
- DetailsViewInsertEventArgs.cs
- InstrumentationTracker.cs
- SystemTcpConnection.cs
- arclist.cs
- StrokeDescriptor.cs
- XmlSerializationReader.cs
- PointCollectionValueSerializer.cs
- BamlLocalizabilityResolver.cs
- SHA1CryptoServiceProvider.cs
- WorkflowCompensationBehavior.cs
- Size.cs
- XslAstAnalyzer.cs
- GatewayIPAddressInformationCollection.cs
- RelativeSource.cs
- DataGridItemAttachedStorage.cs
- LinearGradientBrush.cs
- ThreadPool.cs
- processwaithandle.cs
- RequestCacheManager.cs
- DataContractSerializer.cs
- PropertyContainer.cs
- DefaultValueAttribute.cs
- BlockCollection.cs
- PackageDigitalSignatureManager.cs
- DescendentsWalkerBase.cs
- PagedControl.cs
- MsmqIntegrationSecurityElement.cs
- ZoomComboBox.cs
- FormViewDeletedEventArgs.cs
- MenuEventArgs.cs
- ProcessModelSection.cs
- ListenerHandler.cs
- WindowsTokenRoleProvider.cs
- _CommandStream.cs
- QueryOptionExpression.cs
- PropertyMapper.cs
- ConfigXmlElement.cs
- ScriptManagerProxy.cs
- StreamGeometry.cs
- SmtpFailedRecipientsException.cs
- IDReferencePropertyAttribute.cs
- OutputCacheProviderCollection.cs
- XmlDataSourceNodeDescriptor.cs
- SqlParameterCollection.cs
- TreeNodeMouseHoverEvent.cs
- TraceHelpers.cs
- OutputCacheProfileCollection.cs
- VariableValue.cs
- CapabilitiesRule.cs
- ColumnHeaderCollectionEditor.cs
- ReferentialConstraint.cs
- DesignOnlyAttribute.cs
- MailBnfHelper.cs
- JoinTreeNode.cs
- ResetableIterator.cs
- VirtualPathUtility.cs
- peernodestatemanager.cs
- TextTreeText.cs
- ConfigurationValues.cs
- ListViewItemCollectionEditor.cs
- FtpRequestCacheValidator.cs
- ContextStack.cs
- DuplicateWaitObjectException.cs
- XmlNullResolver.cs
- IdentityNotMappedException.cs
- XmlCountingReader.cs
- ScalarType.cs
- ObjectListSelectEventArgs.cs
- TransformGroup.cs
- BuildProvider.cs
- rsa.cs
- SqlGatherConsumedAliases.cs
- ConfigurationManager.cs
- ProviderConnectionPointCollection.cs
- CodeTypeReferenceSerializer.cs
- OdbcFactory.cs
- ConfigXmlCDataSection.cs
- DelegateTypeInfo.cs
- _IPv4Address.cs
- PersonalizationAdministration.cs