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
- Thread.cs
- XmlSortKey.cs
- PopupEventArgs.cs
- Latin1Encoding.cs
- MergeFilterQuery.cs
- SecureConversationDriver.cs
- ConstantCheck.cs
- MenuItemStyleCollectionEditor.cs
- ReadOnlyTernaryTree.cs
- Menu.cs
- GrowingArray.cs
- compensatingcollection.cs
- TableParaClient.cs
- QuaternionConverter.cs
- JoinElimination.cs
- securitymgrsite.cs
- HttpWebRequestElement.cs
- OracleTimeSpan.cs
- ProxyHwnd.cs
- Vector3DCollection.cs
- CustomCredentialPolicy.cs
- VirtualPathData.cs
- ColumnPropertiesGroup.cs
- DetailsViewDeletedEventArgs.cs
- WebPartsPersonalization.cs
- VectorAnimation.cs
- ByeOperation11AsyncResult.cs
- SchemaNamespaceManager.cs
- TextTreePropertyUndoUnit.cs
- Glyph.cs
- TypeElement.cs
- ConfigurationLockCollection.cs
- CodeAccessPermission.cs
- InvokeMethodActivity.cs
- RepeatBehavior.cs
- SqlFormatter.cs
- ToolStripLocationCancelEventArgs.cs
- InkCollectionBehavior.cs
- ObjectIDGenerator.cs
- _KerberosClient.cs
- RuleInfoComparer.cs
- ContentPosition.cs
- SweepDirectionValidation.cs
- securitymgrsite.cs
- OperationSelectorBehavior.cs
- RightNameExpirationInfoPair.cs
- MemberExpression.cs
- ModuleBuilderData.cs
- XmlAtomicValue.cs
- SelectionProcessor.cs
- Triangle.cs
- TypeDescriptorFilterService.cs
- FileBasedResourceGroveler.cs
- AttributedMetaModel.cs
- TableLayoutCellPaintEventArgs.cs
- EventMappingSettings.cs
- DataProtection.cs
- ErrorLog.cs
- DataViewManager.cs
- MetadataUtil.cs
- RuleSettingsCollection.cs
- ProjectionPlanCompiler.cs
- SocketInformation.cs
- EncryptedKey.cs
- ParserExtension.cs
- ListCardsInFileRequest.cs
- UnmanagedMemoryStream.cs
- StreamReader.cs
- ProcessMonitor.cs
- AuthenticateEventArgs.cs
- CompModSwitches.cs
- SqlClientPermission.cs
- TextRangeEditTables.cs
- UInt32.cs
- TabControl.cs
- ScrollViewer.cs
- SourceFilter.cs
- XmlIlTypeHelper.cs
- DateBoldEvent.cs
- DataControlLinkButton.cs
- ContentFilePart.cs
- EventPropertyMap.cs
- InlineUIContainer.cs
- MouseGesture.cs
- BitmapCodecInfo.cs
- AuthenticationConfig.cs
- AuthorizationPolicyTypeElement.cs
- InputScopeConverter.cs
- ComponentChangingEvent.cs
- DragStartedEventArgs.cs
- EtwProvider.cs
- HwndSubclass.cs
- ServiceDesigner.cs
- DuplicateWaitObjectException.cs
- XmlReturnReader.cs
- SingleKeyFrameCollection.cs
- ParseNumbers.cs
- XPathNodeList.cs
- CharacterMetrics.cs
- WsdlServiceChannelBuilder.cs