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
- DefaultBindingPropertyAttribute.cs
- WebResourceUtil.cs
- IndexedString.cs
- SqlDataSourceCustomCommandEditor.cs
- ListViewGroupItemCollection.cs
- NativeConfigurationLoader.cs
- SqlClientPermission.cs
- WebConfigurationManager.cs
- SqlCacheDependencyDatabase.cs
- HttpCapabilitiesBase.cs
- ActionFrame.cs
- GorillaCodec.cs
- ResourceSetExpression.cs
- UInt64Converter.cs
- WindowsToolbarItemAsMenuItem.cs
- TemporaryBitmapFile.cs
- SupportsPreviewControlAttribute.cs
- FormViewDeleteEventArgs.cs
- EntityConnection.cs
- GeneralTransform2DTo3D.cs
- ListControlActionList.cs
- BitmapData.cs
- XmlSerializerFormatAttribute.cs
- _NestedMultipleAsyncResult.cs
- RayMeshGeometry3DHitTestResult.cs
- Code.cs
- COAUTHINFO.cs
- AsyncResult.cs
- HelpExampleGenerator.cs
- SafeJobHandle.cs
- TraversalRequest.cs
- XmlAnyAttributeAttribute.cs
- ResourceProperty.cs
- PageCatalogPart.cs
- OutputScopeManager.cs
- FormatSettings.cs
- NativeStructs.cs
- ByteRangeDownloader.cs
- HighlightComponent.cs
- DataGridRow.cs
- AbandonedMutexException.cs
- ToolStripTextBox.cs
- EncoderBestFitFallback.cs
- IgnoreDeviceFilterElementCollection.cs
- ParentControlDesigner.cs
- UriSchemeKeyedCollection.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- StringAnimationBase.cs
- LinqDataSourceDisposeEventArgs.cs
- DataGridView.cs
- CompositeDuplexBindingElementImporter.cs
- XmlnsCache.cs
- QueueAccessMode.cs
- TransactionsSectionGroup.cs
- PropertyValueUIItem.cs
- BlockUIContainer.cs
- ServicePoint.cs
- SerializationInfo.cs
- WebPartManagerInternals.cs
- EnumerableWrapperWeakToStrong.cs
- ThreadNeutralSemaphore.cs
- PropertyChangedEventArgs.cs
- ImageCodecInfo.cs
- autovalidator.cs
- CaseInsensitiveHashCodeProvider.cs
- Brush.cs
- ChannelDemuxer.cs
- XmlSchemas.cs
- AttachmentService.cs
- ping.cs
- CodeTypeDeclaration.cs
- PeerNameRecordCollection.cs
- ProxyWebPartConnectionCollection.cs
- LinkedResourceCollection.cs
- CombinedGeometry.cs
- StreamWriter.cs
- UserControlAutomationPeer.cs
- GuidConverter.cs
- CryptoSession.cs
- objectresult_tresulttype.cs
- CommunicationObject.cs
- ProxyWebPartManager.cs
- ContextMenuAutomationPeer.cs
- PerfCounterSection.cs
- HierarchicalDataBoundControl.cs
- EndpointDesigner.cs
- MutexSecurity.cs
- OleDbError.cs
- ObjectTokenCategory.cs
- EntryPointNotFoundException.cs
- ICollection.cs
- OdbcCommandBuilder.cs
- MessageContractMemberAttribute.cs
- CodeTypeMemberCollection.cs
- SourceSwitch.cs
- ExceptionValidationRule.cs
- GlobalDataBindingHandler.cs
- QfeChecker.cs
- RSACryptoServiceProvider.cs
- DecoderExceptionFallback.cs