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
- CallbackHandler.cs
- ReturnType.cs
- XamlBuildProvider.cs
- UrlMapping.cs
- ListItemConverter.cs
- SearchExpression.cs
- QueryPageSettingsEventArgs.cs
- GeneralTransform3DTo2D.cs
- DelegatedStream.cs
- HMACSHA384.cs
- StoreContentChangedEventArgs.cs
- Model3DCollection.cs
- ProcessThread.cs
- XmlSchemaSimpleContentExtension.cs
- JsonByteArrayDataContract.cs
- DesignerAutoFormat.cs
- ObjectIDGenerator.cs
- FixedSchema.cs
- VisualTreeHelper.cs
- ProtocolImporter.cs
- ToolStripContentPanelRenderEventArgs.cs
- MeshGeometry3D.cs
- PrintingPermission.cs
- TraceListeners.cs
- XmlSchemaNotation.cs
- CodeObjectCreateExpression.cs
- PartialCachingAttribute.cs
- AssertFilter.cs
- CmsInterop.cs
- RenderDataDrawingContext.cs
- ProcessHost.cs
- ZipIOCentralDirectoryBlock.cs
- LongTypeConverter.cs
- SqlGenericUtil.cs
- ExpressionEditorAttribute.cs
- ConstructorBuilder.cs
- Size.cs
- Error.cs
- DBBindings.cs
- StylusPlugInCollection.cs
- ImageFormat.cs
- CheckPair.cs
- ResXFileRef.cs
- Lasso.cs
- SqlBuffer.cs
- SafeTimerHandle.cs
- QueueProcessor.cs
- ParameterToken.cs
- SmiContext.cs
- DataList.cs
- RoleGroupCollection.cs
- IndexedGlyphRun.cs
- WinEventQueueItem.cs
- DataGridViewCellValueEventArgs.cs
- MissingMethodException.cs
- LineServicesCallbacks.cs
- ChtmlLinkAdapter.cs
- XPathMultyIterator.cs
- ConnectionPoolManager.cs
- DrawingContextWalker.cs
- RoleManagerModule.cs
- StatusBarItem.cs
- SessionPageStatePersister.cs
- ActivityCodeGenerator.cs
- ConfigurationConverterBase.cs
- GroupAggregateExpr.cs
- SendMailErrorEventArgs.cs
- EditorPart.cs
- WSSecureConversationDec2005.cs
- GuidelineCollection.cs
- BooleanStorage.cs
- ScriptBehaviorDescriptor.cs
- ProxyWebPart.cs
- FixedPageAutomationPeer.cs
- ToolStripContentPanel.cs
- DispatcherExceptionEventArgs.cs
- MediaContextNotificationWindow.cs
- CaseInsensitiveComparer.cs
- Rijndael.cs
- XmlUtil.cs
- NetworkStream.cs
- HttpListenerRequest.cs
- TextRangeEditLists.cs
- ItemPager.cs
- PrintDialogException.cs
- XPathSelectionIterator.cs
- Socket.cs
- SaveWorkflowAsyncResult.cs
- SymbolEqualComparer.cs
- GeometryConverter.cs
- OdbcEnvironment.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- UnicastIPAddressInformationCollection.cs
- TabControl.cs
- Geometry3D.cs
- EdmMember.cs
- ClassHandlersStore.cs
- DataObjectAttribute.cs
- EntityDataSourceQueryBuilder.cs
- XmlAnyElementAttribute.cs