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
- RuntimeArgumentHandle.cs
- Converter.cs
- ImageSourceConverter.cs
- MimeBasePart.cs
- ResourceDescriptionAttribute.cs
- MemberAccessException.cs
- ConfigurationSectionCollection.cs
- HashSet.cs
- MergablePropertyAttribute.cs
- CellTreeNode.cs
- CommentEmitter.cs
- RequestQueue.cs
- DataTemplate.cs
- ManagementObjectSearcher.cs
- Point3DAnimation.cs
- SafeHandles.cs
- XmlSerializerSection.cs
- SoapRpcMethodAttribute.cs
- PerfCounters.cs
- OdbcConnectionPoolProviderInfo.cs
- CodeConstructor.cs
- DelegatedStream.cs
- UriScheme.cs
- ProvidersHelper.cs
- ToolStripPanel.cs
- BuildProviderAppliesToAttribute.cs
- MsmqElementBase.cs
- CryptoConfig.cs
- TraceData.cs
- ListChunk.cs
- Panel.cs
- JpegBitmapEncoder.cs
- DataGridView.cs
- SimpleHandlerFactory.cs
- DataGridHeaderBorder.cs
- TextEditorTables.cs
- IPAddressCollection.cs
- ElapsedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- EUCJPEncoding.cs
- GridViewEditEventArgs.cs
- BufferedOutputAsyncStream.cs
- AssociatedControlConverter.cs
- XsdCachingReader.cs
- UnionQueryOperator.cs
- SubordinateTransaction.cs
- ByteStream.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WmlPageAdapter.cs
- UmAlQuraCalendar.cs
- DataGridClipboardHelper.cs
- ViewStateModeByIdAttribute.cs
- GenerateTemporaryAssemblyTask.cs
- ReadOnlyPropertyMetadata.cs
- XPathSelectionIterator.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- JournalNavigationScope.cs
- ConfigurationManagerInternal.cs
- ChangePassword.cs
- RubberbandSelector.cs
- ProfilePropertySettings.cs
- SimpleType.cs
- GlyphCache.cs
- DataKeyCollection.cs
- RelationshipEntry.cs
- JsonDeserializer.cs
- ServiceReference.cs
- SymbolUsageManager.cs
- Substitution.cs
- XmlSecureResolver.cs
- SettingsAttributes.cs
- CloseSequence.cs
- ListViewSelectEventArgs.cs
- Memoizer.cs
- ListViewUpdatedEventArgs.cs
- IUnknownConstantAttribute.cs
- NetSectionGroup.cs
- DependencyPropertyHelper.cs
- TcpClientSocketManager.cs
- IndentedWriter.cs
- TrustManagerPromptUI.cs
- NotFiniteNumberException.cs
- Predicate.cs
- CodeDelegateInvokeExpression.cs
- XmlBoundElement.cs
- ToolStripDropTargetManager.cs
- EdgeModeValidation.cs
- Message.cs
- XmlSerializerSection.cs
- DataSourceGroupCollection.cs
- AspNetCompatibilityRequirementsMode.cs
- WindowsTreeView.cs
- Lease.cs
- TreeNodeCollection.cs
- WebMessageFormatHelper.cs
- InternalCache.cs
- TiffBitmapDecoder.cs
- TimersDescriptionAttribute.cs
- Utils.cs
- SchemaNotation.cs