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
- UnionCqlBlock.cs
- XmlDataSource.cs
- PagesChangedEventArgs.cs
- AnonymousIdentificationSection.cs
- SimpleWorkerRequest.cs
- AuthenticationSection.cs
- StackBuilderSink.cs
- DateTime.cs
- SqlRemoveConstantOrderBy.cs
- XmlTextAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- Transform.cs
- WizardStepBase.cs
- Marshal.cs
- VectorAnimation.cs
- CollectionViewGroupInternal.cs
- ConstNode.cs
- UnsafePeerToPeerMethods.cs
- ListBindingConverter.cs
- _NetworkingPerfCounters.cs
- XmlSignatureProperties.cs
- CollectionViewGroup.cs
- HttpServerProtocol.cs
- SymLanguageVendor.cs
- DataGridViewCheckBoxColumn.cs
- CompositionAdorner.cs
- webclient.cs
- HistoryEventArgs.cs
- BeginEvent.cs
- PropertyKey.cs
- BulletedList.cs
- DashStyle.cs
- CompilerError.cs
- DefaultTextStoreTextComposition.cs
- propertytag.cs
- Panel.cs
- Rect3DConverter.cs
- ChannelFactoryRefCache.cs
- ButtonPopupAdapter.cs
- BinaryFormatterSinks.cs
- ClientSettingsProvider.cs
- ToolStripDropDownClosingEventArgs.cs
- Adorner.cs
- EditableLabelControl.cs
- BitmapVisualManager.cs
- StylesEditorDialog.cs
- PropertyValueChangedEvent.cs
- DirectionalLight.cs
- XPathSelfQuery.cs
- SortDescription.cs
- MatrixConverter.cs
- ExclusiveHandleList.cs
- JsonCollectionDataContract.cs
- LayoutExceptionEventArgs.cs
- ComponentEditorPage.cs
- IPipelineRuntime.cs
- GPPOINTF.cs
- RequestCache.cs
- UInt16Converter.cs
- ProxyWebPartConnectionCollection.cs
- httpstaticobjectscollection.cs
- NamedElement.cs
- MSHTMLHostUtil.cs
- MouseOverProperty.cs
- IssuanceLicense.cs
- DbTransaction.cs
- ServerValidateEventArgs.cs
- SendMailErrorEventArgs.cs
- ListViewPagedDataSource.cs
- DataContractSerializerSection.cs
- CalendarBlackoutDatesCollection.cs
- StrongNameMembershipCondition.cs
- ConfigurationManagerInternalFactory.cs
- XmlQueryOutput.cs
- WebPartCatalogCloseVerb.cs
- TableAutomationPeer.cs
- IDispatchConstantAttribute.cs
- RefType.cs
- MemoryFailPoint.cs
- PageAdapter.cs
- TextSelectionHelper.cs
- SymLanguageVendor.cs
- CharacterString.cs
- DispatchWrapper.cs
- Table.cs
- FontConverter.cs
- GeometryValueSerializer.cs
- GregorianCalendar.cs
- NonBatchDirectoryCompiler.cs
- HwndSourceParameters.cs
- cache.cs
- DataGridRowDetailsEventArgs.cs
- MenuStrip.cs
- PropertyIDSet.cs
- NameSpaceEvent.cs
- TypePresenter.xaml.cs
- Triplet.cs
- SelectionRangeConverter.cs
- BitFlagsGenerator.cs
- SamlSubjectStatement.cs