Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / MetadataItemCollectionFactory.cs / 3 / 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
- VarInfo.cs
- PropertyValueUIItem.cs
- LogLogRecord.cs
- NumberFormatInfo.cs
- Underline.cs
- SessionState.cs
- Content.cs
- SqlResolver.cs
- SystemInfo.cs
- DefaultClaimSet.cs
- DatagridviewDisplayedBandsData.cs
- LocatorManager.cs
- ConstructorBuilder.cs
- Int64KeyFrameCollection.cs
- EncoderNLS.cs
- SchemaImporterExtensionElementCollection.cs
- DrawingContextDrawingContextWalker.cs
- PasswordTextNavigator.cs
- XmlChildNodes.cs
- MetadataItemEmitter.cs
- HtmlTitle.cs
- LabelEditEvent.cs
- WindowsMenu.cs
- WebPartUtil.cs
- Light.cs
- HebrewNumber.cs
- Matrix.cs
- SoapExtensionTypeElementCollection.cs
- PenThreadPool.cs
- DBConcurrencyException.cs
- FullTrustAssembly.cs
- Win32SafeHandles.cs
- UserNameSecurityTokenAuthenticator.cs
- CollaborationHelperFunctions.cs
- ZoneLinkButton.cs
- DataRow.cs
- Queue.cs
- LineServicesCallbacks.cs
- UnsafeNativeMethods.cs
- DetailsViewInsertEventArgs.cs
- WindowsListBox.cs
- UnaryNode.cs
- Hex.cs
- AuthStoreRoleProvider.cs
- BaseCodePageEncoding.cs
- TrackBarRenderer.cs
- OdbcInfoMessageEvent.cs
- AlternateView.cs
- GPStream.cs
- DataRecordInternal.cs
- MetabaseServerConfig.cs
- XmlSchemaIdentityConstraint.cs
- AccessKeyManager.cs
- ConsumerConnectionPointCollection.cs
- WinEventHandler.cs
- FrameworkTextComposition.cs
- PlacementWorkspace.cs
- XMLSyntaxException.cs
- Matrix3DConverter.cs
- MembershipUser.cs
- ValidatorCompatibilityHelper.cs
- TextTabProperties.cs
- HttpModuleActionCollection.cs
- XmlWriterSettings.cs
- ZipIOExtraFieldZip64Element.cs
- ObfuscateAssemblyAttribute.cs
- TextEndOfLine.cs
- PassportPrincipal.cs
- selecteditemcollection.cs
- DataFieldConverter.cs
- ProtocolsConfiguration.cs
- EdmTypeAttribute.cs
- SqlAliaser.cs
- MobileControlsSectionHandler.cs
- Automation.cs
- RegexTree.cs
- ProcessHostServerConfig.cs
- DirtyTextRange.cs
- RNGCryptoServiceProvider.cs
- listitem.cs
- SchemaImporter.cs
- PackWebRequest.cs
- DurationConverter.cs
- CodeTypeMemberCollection.cs
- PanelDesigner.cs
- GetPageCompletedEventArgs.cs
- SafeNativeMethods.cs
- DiffuseMaterial.cs
- GAC.cs
- SettingsPropertyCollection.cs
- PrivilegeNotHeldException.cs
- BuildProviderUtils.cs
- Char.cs
- ValueTypeFixupInfo.cs
- SiteMapNodeItem.cs
- ProtocolsConfigurationHandler.cs
- StatusCommandUI.cs
- DesignerToolStripControlHost.cs
- path.cs
- TableSectionStyle.cs