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
- EditableTreeList.cs
- ThicknessAnimation.cs
- XmlSerializerAssemblyAttribute.cs
- UrlPropertyAttribute.cs
- CodeBlockBuilder.cs
- QueryOperator.cs
- HostingEnvironmentSection.cs
- UICuesEvent.cs
- WorkflowMessageEventHandler.cs
- JoinElimination.cs
- BinaryObjectWriter.cs
- SqlUtil.cs
- PrintEvent.cs
- ReverseInheritProperty.cs
- SecurityState.cs
- MimeObjectFactory.cs
- AstTree.cs
- PersonalizationStateInfoCollection.cs
- HtmlDocument.cs
- ExceptionTrace.cs
- ProcessHost.cs
- FragmentQueryKB.cs
- SuppressMergeCheckAttribute.cs
- DataGridViewCellFormattingEventArgs.cs
- DataGridViewDesigner.cs
- ParsedRoute.cs
- ParameterCollectionEditor.cs
- FileUtil.cs
- SearchForVirtualItemEventArgs.cs
- ObjectDesignerDataSourceView.cs
- COM2Enum.cs
- EntitySqlQueryState.cs
- TabControl.cs
- BuildProviderAppliesToAttribute.cs
- ClipboardData.cs
- Base64Decoder.cs
- ConstNode.cs
- ClientRuntimeConfig.cs
- PageThemeParser.cs
- EdmRelationshipRoleAttribute.cs
- FieldDescriptor.cs
- JoinElimination.cs
- Condition.cs
- TrueReadOnlyCollection.cs
- Transform3D.cs
- SecurityTokenSerializer.cs
- Screen.cs
- Dynamic.cs
- DocumentViewerBase.cs
- InkSerializer.cs
- FieldBuilder.cs
- DocumentViewerAutomationPeer.cs
- MemoryStream.cs
- TextParaLineResult.cs
- AutomationElement.cs
- JournalEntry.cs
- DbDataRecord.cs
- MemoryMappedViewAccessor.cs
- VisualBasicHelper.cs
- FlowDocumentReaderAutomationPeer.cs
- Vector3DCollection.cs
- Geometry.cs
- BrowserCapabilitiesFactory35.cs
- CapabilitiesAssignment.cs
- TableItemStyle.cs
- control.ime.cs
- SqlDuplicator.cs
- SoapReflectionImporter.cs
- MessageQueueInstaller.cs
- ListDictionaryInternal.cs
- XMLSyntaxException.cs
- MailAddressParser.cs
- WindowsScroll.cs
- RadioButtonStandardAdapter.cs
- PropertyIDSet.cs
- externdll.cs
- BlurBitmapEffect.cs
- XmlTypeAttribute.cs
- BaseDataListDesigner.cs
- listitem.cs
- GeometryHitTestParameters.cs
- GuidTagList.cs
- MergeLocalizationDirectives.cs
- PersonalizationProviderHelper.cs
- URLAttribute.cs
- ReadContentAsBinaryHelper.cs
- ConfigurationLockCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- ResourceManager.cs
- ImpersonateTokenRef.cs
- DrawingServices.cs
- PersonalizableTypeEntry.cs
- BaseCollection.cs
- DataSourceView.cs
- BufferedStream.cs
- rsa.cs
- WeakReferenceList.cs
- LineSegment.cs
- SecurityUtils.cs
- Function.cs