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
- FlowDocumentScrollViewerAutomationPeer.cs
- PixelFormats.cs
- GorillaCodec.cs
- CollectionDataContract.cs
- CollectionViewGroupInternal.cs
- TextCompositionEventArgs.cs
- ContentHostHelper.cs
- PackageProperties.cs
- RoutedCommand.cs
- DataGridTableCollection.cs
- ToolStripCollectionEditor.cs
- DBConnectionString.cs
- ToolStripDropTargetManager.cs
- InlineUIContainer.cs
- DesignerImageAdapter.cs
- LoginUtil.cs
- VariableQuery.cs
- Operator.cs
- Exception.cs
- XPathNodeList.cs
- DelegateInArgument.cs
- GetRecipientRequest.cs
- Effect.cs
- ArrangedElementCollection.cs
- EntityProviderFactory.cs
- ErrorProvider.cs
- XmlMembersMapping.cs
- CultureInfoConverter.cs
- VarRemapper.cs
- CqlParser.cs
- GridViewRowCollection.cs
- XmlSchemaCollection.cs
- TrackingLocationCollection.cs
- AtlasWeb.Designer.cs
- AutoCompleteStringCollection.cs
- MembershipUser.cs
- WindowsListViewItem.cs
- IChannel.cs
- KeyFrames.cs
- XomlCompilerResults.cs
- FirstMatchCodeGroup.cs
- MimeBasePart.cs
- WindowsListView.cs
- WebRequestModuleElementCollection.cs
- IpcServerChannel.cs
- CallSiteHelpers.cs
- X509Certificate2.cs
- EntryPointNotFoundException.cs
- PartBasedPackageProperties.cs
- ContainsRowNumberChecker.cs
- XNodeValidator.cs
- TaskFileService.cs
- AuthenticatingEventArgs.cs
- Util.cs
- ConfigurationValidatorBase.cs
- ProjectionCamera.cs
- PartialCachingControl.cs
- ProjectionCamera.cs
- TransformDescriptor.cs
- SendMessageChannelCache.cs
- GridViewEditEventArgs.cs
- WebConfigurationHostFileChange.cs
- IgnoreFlushAndCloseStream.cs
- DeclarationUpdate.cs
- NamespaceEmitter.cs
- Delegate.cs
- Int16Animation.cs
- SliderAutomationPeer.cs
- SQLInt32Storage.cs
- DrawingAttributesDefaultValueFactory.cs
- JavaScriptObjectDeserializer.cs
- StrokeCollection2.cs
- ParameterCollectionEditorForm.cs
- ModuleConfigurationInfo.cs
- TrackingStringDictionary.cs
- ExpressionsCollectionConverter.cs
- ColorConvertedBitmapExtension.cs
- BindingExpressionBase.cs
- WhitespaceRuleLookup.cs
- DataGridViewColumnHeaderCell.cs
- XmlSchemaValidator.cs
- WindowsStartMenu.cs
- TextContainerChangeEventArgs.cs
- SQLBoolean.cs
- XmlKeywords.cs
- StatusBarItemAutomationPeer.cs
- Point3DKeyFrameCollection.cs
- FloatMinMaxAggregationOperator.cs
- WinFormsSecurity.cs
- ArrayWithOffset.cs
- TextParentUndoUnit.cs
- ForeignKeyConstraint.cs
- SpeechSeg.cs
- ProvidersHelper.cs
- ConfigurationLockCollection.cs
- InProcStateClientManager.cs
- AlternateView.cs
- WebHttpSecurityElement.cs
- XmlDictionaryString.cs
- XmlSchemaAny.cs