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
- ColorMatrix.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ListControlConvertEventArgs.cs
- Perspective.cs
- DeferredReference.cs
- TreeChangeInfo.cs
- ParameterToken.cs
- RectValueSerializer.cs
- DataGridColumnFloatingHeader.cs
- Stylesheet.cs
- SamlAuthenticationClaimResource.cs
- LineUtil.cs
- TogglePatternIdentifiers.cs
- ThemeableAttribute.cs
- __TransparentProxy.cs
- RawStylusInput.cs
- StreamWithDictionary.cs
- ProfileModule.cs
- ColorContextHelper.cs
- initElementDictionary.cs
- DataServiceQueryException.cs
- DesignerAdapterAttribute.cs
- ReferenceConverter.cs
- ConstraintCollection.cs
- NativeRecognizer.cs
- EndOfStreamException.cs
- WebZone.cs
- BuildManagerHost.cs
- CompilerTypeWithParams.cs
- JavaScriptSerializer.cs
- ManagementPath.cs
- GenericTypeParameterBuilder.cs
- PageSettings.cs
- WindowsUpDown.cs
- Header.cs
- DesignerCategoryAttribute.cs
- SqlNode.cs
- ConcurrentDictionary.cs
- SignatureResourcePool.cs
- InstanceDescriptor.cs
- Set.cs
- ContentDisposition.cs
- EventMap.cs
- DynamicValidator.cs
- RegexCompiler.cs
- oledbmetadatacollectionnames.cs
- DeferrableContent.cs
- TrackingAnnotationCollection.cs
- SoapIncludeAttribute.cs
- BitVector32.cs
- DictionaryBase.cs
- Canvas.cs
- SoundPlayer.cs
- ProcessModuleDesigner.cs
- ParsedRoute.cs
- ListDesigner.cs
- DuplexChannelFactory.cs
- EntityDataSourceSelectedEventArgs.cs
- SiteMapNodeItemEventArgs.cs
- XhtmlBasicTextViewAdapter.cs
- OrthographicCamera.cs
- GetMemberBinder.cs
- NamedServiceModelExtensionCollectionElement.cs
- HttpPostProtocolImporter.cs
- AxisAngleRotation3D.cs
- ContainerVisual.cs
- OwnerDrawPropertyBag.cs
- WebPartVerbCollection.cs
- SafeEventHandle.cs
- X509Extension.cs
- _ConnectionGroup.cs
- RegexRunnerFactory.cs
- AbstractSvcMapFileLoader.cs
- MembershipPasswordException.cs
- MimeTypeAttribute.cs
- PropertyInfo.cs
- CryptoApi.cs
- TimeStampChecker.cs
- DrawingContextDrawingContextWalker.cs
- RemotingConfiguration.cs
- ApplicationFileParser.cs
- XPathSingletonIterator.cs
- DataGridDesigner.cs
- DataObjectFieldAttribute.cs
- BasicBrowserDialog.cs
- RemotingException.cs
- SystemColorTracker.cs
- OutputCacheProfile.cs
- UICuesEvent.cs
- Int32AnimationUsingKeyFrames.cs
- FileUpload.cs
- MatrixValueSerializer.cs
- DataGridViewElement.cs
- RegexBoyerMoore.cs
- TileBrush.cs
- UxThemeWrapper.cs
- WaitHandleCannotBeOpenedException.cs
- Pair.cs
- PointCollection.cs
- VBCodeProvider.cs