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
- Int16AnimationBase.cs
- MsmqBindingElementBase.cs
- LexicalChunk.cs
- SimplePropertyEntry.cs
- DescendantQuery.cs
- ScriptResourceDefinition.cs
- DataSourceListEditor.cs
- PrinterResolution.cs
- SymmetricKeyWrap.cs
- ZoneButton.cs
- DocumentApplicationJournalEntry.cs
- SmiXetterAccessMap.cs
- ContextStaticAttribute.cs
- GridViewCancelEditEventArgs.cs
- CharKeyFrameCollection.cs
- DbTransaction.cs
- _CommandStream.cs
- ObjectComplexPropertyMapping.cs
- MaterialGroup.cs
- TraceSection.cs
- Hex.cs
- Size3DConverter.cs
- LogicalTreeHelper.cs
- TransactionBridgeSection.cs
- _ConnectionGroup.cs
- SoapIncludeAttribute.cs
- TraceContextRecord.cs
- RawAppCommandInputReport.cs
- HtmlToClrEventProxy.cs
- MemoryFailPoint.cs
- FormsAuthenticationTicket.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TableLayoutSettingsTypeConverter.cs
- DynamicPropertyHolder.cs
- Signature.cs
- SqlGenerator.cs
- DataGridViewAdvancedBorderStyle.cs
- ByteArrayHelperWithString.cs
- AspProxy.cs
- StaticContext.cs
- MemoryFailPoint.cs
- ArraySubsetEnumerator.cs
- SimpleWorkerRequest.cs
- ClientProxyGenerator.cs
- SafeNativeMethods.cs
- Int32CAMarshaler.cs
- ColorAnimation.cs
- AbstractSvcMapFileLoader.cs
- ToolStripItemEventArgs.cs
- SqlParameter.cs
- PeerTransportSecurityElement.cs
- TextAdaptor.cs
- ObfuscationAttribute.cs
- CodeMemberProperty.cs
- FlowLayoutPanel.cs
- NonVisualControlAttribute.cs
- CellRelation.cs
- XmlRootAttribute.cs
- SpellerInterop.cs
- WebScriptMetadataInstanceContextProvider.cs
- XmlnsDefinitionAttribute.cs
- QilTargetType.cs
- DataViewSetting.cs
- AppDomainResourcePerfCounters.cs
- OptimalTextSource.cs
- BindingGroup.cs
- DataTableMapping.cs
- UIElement3D.cs
- SchemaTableOptionalColumn.cs
- ScrollItemPatternIdentifiers.cs
- ReadOnlyDataSourceView.cs
- CodeComment.cs
- PageAsyncTaskManager.cs
- DataServiceRequestException.cs
- CollectionsUtil.cs
- CreateUserWizardStep.cs
- RIPEMD160.cs
- ObjectToModelValueConverter.cs
- CharStorage.cs
- TTSVoice.cs
- CollectionExtensions.cs
- AlphabeticalEnumConverter.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DefaultTextStore.cs
- SecurityKeyIdentifier.cs
- _KerberosClient.cs
- GrammarBuilderWildcard.cs
- Visual3DCollection.cs
- DirtyTextRange.cs
- DefaultValidator.cs
- AppliesToBehaviorDecisionTable.cs
- TextBoxView.cs
- DupHandleConnectionReader.cs
- CellTreeNodeVisitors.cs
- ChtmlSelectionListAdapter.cs
- ProfileInfo.cs
- SafeNativeMethodsOther.cs
- LineBreakRecord.cs
- ToggleProviderWrapper.cs
- PolicyManager.cs