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
- RijndaelManaged.cs
- RelatedCurrencyManager.cs
- WebServiceEnumData.cs
- ContainerParaClient.cs
- ContextBase.cs
- EventPrivateKey.cs
- ContainerUIElement3D.cs
- CodeValidator.cs
- EventSourceCreationData.cs
- Stylesheet.cs
- ControlParameter.cs
- CutCopyPasteHelper.cs
- XmlILStorageConverter.cs
- System.Data.OracleClient_BID.cs
- ExtendedPropertyDescriptor.cs
- BulletedList.cs
- PreviousTrackingServiceAttribute.cs
- CommandField.cs
- GridViewSelectEventArgs.cs
- XmlAttributeCache.cs
- TableRowCollection.cs
- Button.cs
- TextView.cs
- contentDescriptor.cs
- EventWaitHandleSecurity.cs
- FilterableAttribute.cs
- cryptoapiTransform.cs
- MergeFailedEvent.cs
- SchemaNotation.cs
- SystemTcpConnection.cs
- XappLauncher.cs
- FeatureSupport.cs
- SizeKeyFrameCollection.cs
- SharedStream.cs
- PackageRelationshipSelector.cs
- PkcsUtils.cs
- HwndSourceKeyboardInputSite.cs
- LoginUtil.cs
- TrackingMemoryStream.cs
- StrokeIntersection.cs
- ManipulationInertiaStartingEventArgs.cs
- FaultCode.cs
- XmlTextReader.cs
- ScriptManager.cs
- Misc.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DataKeyCollection.cs
- OdbcParameterCollection.cs
- EntityProviderServices.cs
- SqlGenericUtil.cs
- Environment.cs
- COM2EnumConverter.cs
- MetadataCache.cs
- SiteMembershipCondition.cs
- ManagementObjectSearcher.cs
- PagePropertiesChangingEventArgs.cs
- PointUtil.cs
- PreloadedPackages.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XsltException.cs
- TraceContextRecord.cs
- MetabaseServerConfig.cs
- DefaultObjectMappingItemCollection.cs
- WebPartMovingEventArgs.cs
- PreviewKeyDownEventArgs.cs
- BitmapData.cs
- ChildChangedEventArgs.cs
- FaultHandlingFilter.cs
- BindingContext.cs
- WpfKnownMember.cs
- BindingBase.cs
- MissingMethodException.cs
- HuffCodec.cs
- InputManager.cs
- ResXFileRef.cs
- XmlSchemaAny.cs
- ReaderWriterLock.cs
- KeyEvent.cs
- ButtonBaseAutomationPeer.cs
- MailBnfHelper.cs
- ButtonChrome.cs
- BeginEvent.cs
- BinHexDecoder.cs
- StylusTouchDevice.cs
- SemanticBasicElement.cs
- ClientSponsor.cs
- Configuration.cs
- XMLDiffLoader.cs
- TaskScheduler.cs
- ServiceTimeoutsElement.cs
- ReachVisualSerializer.cs
- CollectionViewGroupRoot.cs
- ServiceOperationUIEditor.cs
- Vector3DCollectionConverter.cs
- CaseCqlBlock.cs
- RightsManagementInformation.cs
- SuppressIldasmAttribute.cs
- MergeFilterQuery.cs
- OdbcDataReader.cs
- InvokePattern.cs