Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / MetadataItemCollectionFactory.cs / 2 / 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
- HtmlElementEventArgs.cs
- MarkupObject.cs
- GeometryCollection.cs
- SubpageParaClient.cs
- DbConnectionStringCommon.cs
- PersonalizationProvider.cs
- XmlNodeReader.cs
- AutomationElement.cs
- SpeechAudioFormatInfo.cs
- HtmlTableCellCollection.cs
- ReflectionHelper.cs
- AutomationAttributeInfo.cs
- DoubleLinkListEnumerator.cs
- OdbcHandle.cs
- Activator.cs
- SqlDeflator.cs
- MediaCommands.cs
- URL.cs
- Label.cs
- LogConverter.cs
- ActivityValidator.cs
- LoadMessageLogger.cs
- LoginUtil.cs
- FilterableAttribute.cs
- DBSchemaTable.cs
- CodeMemberMethod.cs
- EncryptedData.cs
- Function.cs
- SymLanguageVendor.cs
- Hex.cs
- DesignerSerializerAttribute.cs
- DbMetaDataFactory.cs
- GridProviderWrapper.cs
- DesignRelation.cs
- ObjectStateEntryDbDataRecord.cs
- CheckBoxBaseAdapter.cs
- UnaryNode.cs
- SerializationStore.cs
- SoapSchemaImporter.cs
- SqlRetyper.cs
- GridViewRowPresenter.cs
- CompilerCollection.cs
- ColumnMapProcessor.cs
- OpenFileDialog.cs
- Model3D.cs
- ArrayItemValue.cs
- EndOfStreamException.cs
- QilName.cs
- TypedTableBase.cs
- UnmanagedBitmapWrapper.cs
- XmlDataSource.cs
- UnmanagedBitmapWrapper.cs
- ValidatedControlConverter.cs
- AtomMaterializer.cs
- CollectionType.cs
- EFDataModelProvider.cs
- MatrixConverter.cs
- ImmutableObjectAttribute.cs
- CursorInteropHelper.cs
- StorageInfo.cs
- TagPrefixAttribute.cs
- MessageDecoder.cs
- InputMethodStateTypeInfo.cs
- TextWriter.cs
- UDPClient.cs
- LicFileLicenseProvider.cs
- AssemblyHash.cs
- DataSourceComponent.cs
- JulianCalendar.cs
- XmlTextReaderImpl.cs
- ExpandableObjectConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- FixUpCollection.cs
- ShortcutKeysEditor.cs
- ReservationNotFoundException.cs
- BodyGlyph.cs
- IProvider.cs
- UIHelper.cs
- Events.cs
- ProfileParameter.cs
- MemberInfoSerializationHolder.cs
- TypedReference.cs
- InputGestureCollection.cs
- CorrelationExtension.cs
- FrameDimension.cs
- DataGridViewHitTestInfo.cs
- ProcessHostServerConfig.cs
- KeyedHashAlgorithm.cs
- XmlILCommand.cs
- MenuScrollingVisibilityConverter.cs
- BitmapEffectDrawingContextState.cs
- MethodCallTranslator.cs
- ContainerParaClient.cs
- WorkflowApplicationCompletedEventArgs.cs
- Journaling.cs
- TypeUnloadedException.cs
- BasicCellRelation.cs
- FactoryId.cs
- Enum.cs
- ValidationHelper.cs