Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / ViewGenResults.cs / 2 / 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
- XmlSerializerSection.cs
- TemplateControlCodeDomTreeGenerator.cs
- OleDbException.cs
- RegistrationServices.cs
- RadialGradientBrush.cs
- FrameDimension.cs
- LiteralControl.cs
- InvokeMethod.cs
- PropertySet.cs
- Variant.cs
- DataBinding.cs
- DrawingGroupDrawingContext.cs
- TableLayoutPanel.cs
- SqlSupersetValidator.cs
- ProviderConnectionPoint.cs
- CategoryAttribute.cs
- DataGridItemEventArgs.cs
- ProfileSettings.cs
- Win32SafeHandles.cs
- ProbeDuplex11AsyncResult.cs
- ConnectionStringsExpressionEditor.cs
- LocatorBase.cs
- HMACSHA512.cs
- InternalCompensate.cs
- DoubleKeyFrameCollection.cs
- Pkcs9Attribute.cs
- BaseCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- WeakReadOnlyCollection.cs
- PersonalizationStateQuery.cs
- MetaColumn.cs
- TreeIterators.cs
- VarInfo.cs
- Metafile.cs
- ViewCellRelation.cs
- CriticalExceptions.cs
- TransformDescriptor.cs
- SqlBulkCopyColumnMappingCollection.cs
- ContextDataSourceContextData.cs
- TableLayoutStyle.cs
- CheckBoxStandardAdapter.cs
- SchemaElementLookUpTableEnumerator.cs
- IISUnsafeMethods.cs
- WebBrowserEvent.cs
- ToolStripPanelCell.cs
- CapabilitiesPattern.cs
- TimelineGroup.cs
- PresentationAppDomainManager.cs
- WrapperSecurityCommunicationObject.cs
- ProviderManager.cs
- sqlcontext.cs
- metadatamappinghashervisitor.cs
- StorageBasedPackageProperties.cs
- TreeIterator.cs
- SupportingTokenSecurityTokenResolver.cs
- ScriptReference.cs
- EventInfo.cs
- TraceProvider.cs
- PopOutPanel.cs
- SettingsContext.cs
- PeerContact.cs
- DataGridPageChangedEventArgs.cs
- HostUtils.cs
- FolderBrowserDialog.cs
- DashStyle.cs
- FocusManager.cs
- ConfigXmlText.cs
- MetadataUtilsSmi.cs
- XmlDownloadManager.cs
- SevenBitStream.cs
- QuaternionAnimation.cs
- GroupBoxDesigner.cs
- Binding.cs
- ReachFixedDocumentSerializerAsync.cs
- CancellationToken.cs
- PolyLineSegment.cs
- EventListenerClientSide.cs
- TranslateTransform3D.cs
- SqlTrackingWorkflowInstance.cs
- ComboBoxAutomationPeer.cs
- OracleBinary.cs
- ACE.cs
- CopyOnWriteList.cs
- UrlMapping.cs
- MimeXmlReflector.cs
- ArgumentsParser.cs
- Deserializer.cs
- DateTimeParse.cs
- BamlTreeNode.cs
- IIS7WorkerRequest.cs
- SmtpNtlmAuthenticationModule.cs
- WebPartsPersonalizationAuthorization.cs
- GridView.cs
- XmlDataProvider.cs
- _AcceptOverlappedAsyncResult.cs
- NegatedCellConstant.cs
- SemanticBasicElement.cs
- ScrollBar.cs
- RefreshPropertiesAttribute.cs
- XmlDomTextWriter.cs