Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / MetadataItemCollectionFactory.cs / 1 / MetadataItemCollectionFactory.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Data.Entity;
using System.Data.EntityModel;
using System.Xml;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Metadata.Edm;
using System.Data.Mapping;
namespace System.Data.Entity.Design
{
///
/// Factory for creating ItemCollections. This class is to be used for
/// design time scenarios. The consumers of the methods in this class
/// will get an error list instead of an exception if there are errors in schema files.
///
public static class MetadataItemCollectionFactory
{
///
/// Create an EdmItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
public static EdmItemCollection CreateEdmItemCollection(IEnumerable readers,
out IList errors)
{
System.Collections.ObjectModel.ReadOnlyCollection filePaths = null;
return new EdmItemCollection(readers, filePaths, out errors);
}
///
/// Create an StoreItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
///
public static StoreItemCollection CreateStoreItemCollection(IEnumerable readers,
out IList errors)
{
return new StoreItemCollection(readers, null, out errors);
}
///
/// Create a StorageMappingItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")]
public static StorageMappingItemCollection CreateStorageMappingItemCollection(EdmItemCollection edmCollection,
StoreItemCollection storeCollection, IEnumerable readers, out IList errors)
{
return new StorageMappingItemCollection(edmCollection, storeCollection, readers, null, out errors);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Data.Entity;
using System.Data.EntityModel;
using System.Xml;
using System.Collections.Generic;
using System.Data.Common;
using System.Data.Metadata.Edm;
using System.Data.Mapping;
namespace System.Data.Entity.Design
{
///
/// Factory for creating ItemCollections. This class is to be used for
/// design time scenarios. The consumers of the methods in this class
/// will get an error list instead of an exception if there are errors in schema files.
///
public static class MetadataItemCollectionFactory
{
///
/// Create an EdmItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
public static EdmItemCollection CreateEdmItemCollection(IEnumerable readers,
out IList errors)
{
System.Collections.ObjectModel.ReadOnlyCollection filePaths = null;
return new EdmItemCollection(readers, filePaths, out errors);
}
///
/// Create an StoreItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
///
public static StoreItemCollection CreateStoreItemCollection(IEnumerable readers,
out IList errors)
{
return new StoreItemCollection(readers, null, out errors);
}
///
/// Create a StorageMappingItemCollection with the passed in parameters.
/// Add any errors caused during the ItemCollection creation
/// to the error list passed in.
///
///
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")]
public static StorageMappingItemCollection CreateStorageMappingItemCollection(EdmItemCollection edmCollection,
StoreItemCollection storeCollection, IEnumerable readers, out IList errors)
{
return new StorageMappingItemCollection(edmCollection, storeCollection, readers, null, out errors);
}
}
}
// 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
- ColorContext.cs
- Stopwatch.cs
- ContextDataSourceContextData.cs
- SendingRequestEventArgs.cs
- XmlSchemaFacet.cs
- PageParserFilter.cs
- PrintPreviewGraphics.cs
- FixedSOMPageElement.cs
- ErrorRuntimeConfig.cs
- ADRoleFactoryConfiguration.cs
- XsdCachingReader.cs
- AddInSegmentDirectoryNotFoundException.cs
- EdmItemCollection.OcAssemblyCache.cs
- InvariantComparer.cs
- OleDbRowUpdatingEvent.cs
- TemplatedMailWebEventProvider.cs
- MsmqAppDomainProtocolHandler.cs
- RadioButton.cs
- TextSpanModifier.cs
- Span.cs
- StickyNote.cs
- SimpleRecyclingCache.cs
- HyperLinkStyle.cs
- AsyncPostBackTrigger.cs
- QilTargetType.cs
- EndpointDiscoveryMetadataCD1.cs
- SapiInterop.cs
- HtmlFormWrapper.cs
- _NativeSSPI.cs
- AppDomainFactory.cs
- StructuredProperty.cs
- JoinTreeSlot.cs
- FloaterParagraph.cs
- ReaderWriterLockWrapper.cs
- SQLDateTimeStorage.cs
- Parser.cs
- CheckableControlBaseAdapter.cs
- MasterPage.cs
- QueryAsyncResult.cs
- QueryExpression.cs
- MediaElement.cs
- SynchronizationHandlesCodeDomSerializer.cs
- EdmItemCollection.cs
- UseAttributeSetsAction.cs
- PersonalizationProviderCollection.cs
- RegexNode.cs
- XmlUtil.cs
- HtmlFormParameterWriter.cs
- SiteMapNode.cs
- GrammarBuilderWildcard.cs
- CustomWebEventKey.cs
- DataGridTemplateColumn.cs
- DotExpr.cs
- PermissionRequestEvidence.cs
- BoundColumn.cs
- AndCondition.cs
- Clause.cs
- ReadOnlyTernaryTree.cs
- XmlReturnWriter.cs
- OperationCanceledException.cs
- EmbeddedObject.cs
- TranslateTransform3D.cs
- objectresult_tresulttype.cs
- ProxyWebPartManager.cs
- dbenumerator.cs
- InvalidContentTypeException.cs
- NameNode.cs
- OpenTypeLayoutCache.cs
- SystemFonts.cs
- CollaborationHelperFunctions.cs
- DataGridItemAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- InkPresenterAutomationPeer.cs
- Timer.cs
- XamlBrushSerializer.cs
- RelationshipConverter.cs
- IntSecurity.cs
- TreeWalkHelper.cs
- ParserContext.cs
- AdornedElementPlaceholder.cs
- AmbientValueAttribute.cs
- MetadataProperty.cs
- InkCanvasAutomationPeer.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BitmapFrameEncode.cs
- DataRow.cs
- ViewLoader.cs
- AccessibleObject.cs
- ResourceAttributes.cs
- Bookmark.cs
- DocumentSchemaValidator.cs
- PersonalizablePropertyEntry.cs
- WebServiceClientProxyGenerator.cs
- SeekStoryboard.cs
- SqlMetaData.cs
- LayoutEvent.cs
- ManipulationStartedEventArgs.cs
- IOException.cs
- UIElementIsland.cs
- AppModelKnownContentFactory.cs