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
- Material.cs
- TabletDevice.cs
- Object.cs
- ParameterCollection.cs
- InstanceCreationEditor.cs
- PriorityBindingExpression.cs
- SwitchElementsCollection.cs
- WebPartDisplayModeEventArgs.cs
- PropertyChangedEventManager.cs
- SafeFileMapViewHandle.cs
- TraceContext.cs
- RewritingValidator.cs
- ArgIterator.cs
- DbConnectionPoolCounters.cs
- Parser.cs
- CaseStatementProjectedSlot.cs
- DataGridItem.cs
- MatrixAnimationUsingKeyFrames.cs
- DrawingImage.cs
- ViewManager.cs
- DiscoveryServerProtocol.cs
- GeometryValueSerializer.cs
- DetailsViewInsertEventArgs.cs
- RuleSettings.cs
- WeakEventManager.cs
- XMLSyntaxException.cs
- WebPartConnectionsConfigureVerb.cs
- RichTextBox.cs
- Matrix.cs
- GridViewRowCollection.cs
- EventRouteFactory.cs
- BaseTemplateBuildProvider.cs
- SiteMapDataSourceView.cs
- LoginName.cs
- ViewBase.cs
- ObjectListGeneralPage.cs
- MissingMemberException.cs
- ValueUnavailableException.cs
- SelectionRangeConverter.cs
- RawStylusInputCustomDataList.cs
- ChannelSinkStacks.cs
- ScriptControl.cs
- _LazyAsyncResult.cs
- FixedPosition.cs
- XNameConverter.cs
- BasicViewGenerator.cs
- FixedPage.cs
- DesignTimeVisibleAttribute.cs
- PersistenceTask.cs
- QualificationDataItem.cs
- MatrixTransform.cs
- XmlSchemaFacet.cs
- ProgressBarAutomationPeer.cs
- AssemblyFilter.cs
- SmiConnection.cs
- LoginCancelEventArgs.cs
- ErrorActivity.cs
- WebHeaderCollection.cs
- WebEventTraceProvider.cs
- MetadataCache.cs
- PerfCounters.cs
- BaseEntityWrapper.cs
- ParameterModifier.cs
- FaultReason.cs
- SizeAnimationUsingKeyFrames.cs
- objectresult_tresulttype.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SelfIssuedAuthProofToken.cs
- ResourceAssociationSet.cs
- dbdatarecord.cs
- SqlInternalConnectionSmi.cs
- StaticResourceExtension.cs
- TriggerBase.cs
- Math.cs
- DataGridTextBox.cs
- BindingValueChangedEventArgs.cs
- CommandHelpers.cs
- TimeoutException.cs
- ComAdminWrapper.cs
- SqlDependencyListener.cs
- HijriCalendar.cs
- OdbcConnectionHandle.cs
- SecureEnvironment.cs
- SimpleTypeResolver.cs
- CriticalFinalizerObject.cs
- MethodToken.cs
- AVElementHelper.cs
- HttpHeaderCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- UTF8Encoding.cs
- DesigntimeLicenseContext.cs
- CompilerParameters.cs
- WindowsFormsHost.cs
- ButtonColumn.cs
- SignerInfo.cs
- ConnectionStringEditor.cs
- FolderLevelBuildProviderCollection.cs
- DbQueryCommandTree.cs
- RegistryKey.cs
- Literal.cs