Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / ViewGenResults.cs / 1 / 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
- SelectionWordBreaker.cs
- IPPacketInformation.cs
- AttributeSetAction.cs
- ObjectViewListener.cs
- StrokeCollection.cs
- AttachInfo.cs
- HelpFileFileNameEditor.cs
- SmtpAuthenticationManager.cs
- DBDataPermission.cs
- FileDialogPermission.cs
- UnauthorizedAccessException.cs
- RectAnimationUsingKeyFrames.cs
- TextPattern.cs
- DataGridViewElement.cs
- Attachment.cs
- autovalidator.cs
- SatelliteContractVersionAttribute.cs
- FileRegion.cs
- TextTabProperties.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- MemberInfoSerializationHolder.cs
- DependencyPropertyConverter.cs
- DocumentEventArgs.cs
- XhtmlBasicValidatorAdapter.cs
- ScanQueryOperator.cs
- CachingHintValidation.cs
- SessionStateModule.cs
- ReachBasicContext.cs
- EntityContainerEmitter.cs
- CodeCommentStatementCollection.cs
- PropertyInfo.cs
- SharedPerformanceCounter.cs
- MemberRestriction.cs
- TextCollapsingProperties.cs
- RegexCode.cs
- AnnotationHelper.cs
- EditBehavior.cs
- WebRequestModuleElementCollection.cs
- ListItemConverter.cs
- BitmapFrameEncode.cs
- ObjectDataSourceView.cs
- LeafCellTreeNode.cs
- PrimitiveSchema.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BStrWrapper.cs
- InvariantComparer.cs
- XmlSchemaSubstitutionGroup.cs
- safelinkcollection.cs
- ActivationWorker.cs
- EventHandlersDesigner.cs
- GroupBoxRenderer.cs
- BrushValueSerializer.cs
- CollectionType.cs
- HwndSource.cs
- MulticastDelegate.cs
- ConsumerConnectionPointCollection.cs
- AsynchronousChannel.cs
- UpnEndpointIdentityExtension.cs
- HttpClientChannel.cs
- DiscardableAttribute.cs
- EntitySetBase.cs
- FixedSOMSemanticBox.cs
- BulletChrome.cs
- SiteMap.cs
- BitmapEffectrendercontext.cs
- DataColumnChangeEvent.cs
- StaticContext.cs
- __Filters.cs
- WebPartCatalogCloseVerb.cs
- ActivityExecutionContextCollection.cs
- ManifestSignedXml.cs
- TreeViewImageKeyConverter.cs
- TriState.cs
- UriTemplateQueryValue.cs
- DrawingBrush.cs
- Model3DGroup.cs
- AppDomainGrammarProxy.cs
- AttributeQuery.cs
- TypeBinaryExpression.cs
- CompositionAdorner.cs
- WebPartZoneCollection.cs
- WebPart.cs
- AddInAdapter.cs
- TrackPointCollection.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- GraphicsState.cs
- WmlTextBoxAdapter.cs
- CornerRadius.cs
- AlphaSortedEnumConverter.cs
- BindingMAnagerBase.cs
- DataContractAttribute.cs
- IntSecurity.cs
- HttpCookie.cs
- HtmlHistory.cs
- MemberInitExpression.cs
- ResourcePool.cs
- XAMLParseException.cs
- ContentOnlyMessage.cs
- newitemfactory.cs
- CategoryAttribute.cs