Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataContractAttribute.cs
- InitializationEventAttribute.cs
- thaishape.cs
- RealizationContext.cs
- ISAPIApplicationHost.cs
- ScaleTransform.cs
- Renderer.cs
- SQLDateTimeStorage.cs
- MD5Cng.cs
- SingleStorage.cs
- Permission.cs
- ExpressionBuilder.cs
- FontFamily.cs
- DBSqlParserTable.cs
- UInt64Converter.cs
- WeakEventManager.cs
- ChildDocumentBlock.cs
- UntypedNullExpression.cs
- FilteredReadOnlyMetadataCollection.cs
- XmlArrayItemAttributes.cs
- CompositionTarget.cs
- SynchronizationHandlesCodeDomSerializer.cs
- PopOutPanel.cs
- compensatingcollection.cs
- DataObject.cs
- Form.cs
- PnrpPeerResolverElement.cs
- CriticalHandle.cs
- BooleanFacetDescriptionElement.cs
- MethodBuilderInstantiation.cs
- RegistryPermission.cs
- HashCodeCombiner.cs
- LogLogRecordHeader.cs
- MatrixTransform.cs
- DocumentXPathNavigator.cs
- DesignBindingEditor.cs
- SByte.cs
- StandardRuntimeEnumValidatorAttribute.cs
- Operator.cs
- ToolStripTextBox.cs
- ClockController.cs
- MediaTimeline.cs
- Parser.cs
- ChildChangedEventArgs.cs
- ComPlusDiagnosticTraceRecords.cs
- OracleDataAdapter.cs
- LookupNode.cs
- SmtpNegotiateAuthenticationModule.cs
- EdmType.cs
- AnchoredBlock.cs
- KeyPullup.cs
- EndEvent.cs
- DataSourceCache.cs
- SharedStream.cs
- ContextMenuStripGroupCollection.cs
- XPathDescendantIterator.cs
- HeaderedContentControl.cs
- FamilyCollection.cs
- DesignTimeData.cs
- ProxySimple.cs
- AsyncPostBackTrigger.cs
- CfgArc.cs
- ToolStripItemTextRenderEventArgs.cs
- ItemType.cs
- XmlException.cs
- PropertyPanel.cs
- RootProjectionNode.cs
- DrawingContextDrawingContextWalker.cs
- IntSecurity.cs
- PagesChangedEventArgs.cs
- CodeObject.cs
- StylusPointProperty.cs
- ValueUtilsSmi.cs
- MobileSysDescriptionAttribute.cs
- SafeProcessHandle.cs
- StylusCaptureWithinProperty.cs
- TextModifierScope.cs
- DateTimeOffsetAdapter.cs
- ProcessModelSection.cs
- BitmapCodecInfoInternal.cs
- FontSourceCollection.cs
- RenderDataDrawingContext.cs
- SemaphoreSecurity.cs
- LongCountAggregationOperator.cs
- X509Utils.cs
- PrePrepareMethodAttribute.cs
- RelationshipWrapper.cs
- SignatureConfirmationElement.cs
- MutexSecurity.cs
- RecognizeCompletedEventArgs.cs
- CallContext.cs
- XpsFont.cs
- XmlNamespaceDeclarationsAttribute.cs
- AssertFilter.cs
- StickyNoteHelper.cs
- UriSchemeKeyedCollection.cs
- HttpProfileBase.cs
- PrintDialogException.cs
- SystemDiagnosticsSection.cs
- GridItemCollection.cs