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
- XmlSchemaAnnotated.cs
- SerializerDescriptor.cs
- _NestedSingleAsyncResult.cs
- ComponentCommands.cs
- EventArgs.cs
- ConfigurationElement.cs
- NetworkStream.cs
- FixedBufferAttribute.cs
- Serializer.cs
- DesignTimeDataBinding.cs
- LinqDataView.cs
- DurableInstanceProvider.cs
- RepeaterItemEventArgs.cs
- TemplateBindingExtensionConverter.cs
- FormViewInsertEventArgs.cs
- SystemIPGlobalStatistics.cs
- ConfigurationManagerHelper.cs
- InstalledVoice.cs
- DiffuseMaterial.cs
- JumpTask.cs
- ExportOptions.cs
- WindowsToolbarItemAsMenuItem.cs
- ContractsBCL.cs
- ListItemViewControl.cs
- DefinitionBase.cs
- AttributeQuery.cs
- ManualResetEvent.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlDictionaryWriter.cs
- TreeNodeMouseHoverEvent.cs
- ContractUtils.cs
- SecurityContextTokenCache.cs
- XPathArrayIterator.cs
- PathSegmentCollection.cs
- ProfileParameter.cs
- SqlDeflator.cs
- CapabilitiesRule.cs
- SequenceRange.cs
- ListParaClient.cs
- TemplateColumn.cs
- Registry.cs
- ColorTranslator.cs
- UserControlBuildProvider.cs
- EditBehavior.cs
- ResXBuildProvider.cs
- CodeStatement.cs
- GetPageCompletedEventArgs.cs
- TextEditorDragDrop.cs
- TextSelectionProcessor.cs
- SymbolResolver.cs
- OdbcConnectionStringbuilder.cs
- SignatureDescription.cs
- XmlUTF8TextWriter.cs
- ManagementException.cs
- CfgArc.cs
- HttpServerUtilityWrapper.cs
- DataGridSortCommandEventArgs.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- xsdvalidator.cs
- ThreadAttributes.cs
- documentsequencetextcontainer.cs
- DataGridViewImageCell.cs
- ConnectionInterfaceCollection.cs
- DeviceSpecificChoiceCollection.cs
- SettingsBindableAttribute.cs
- StringCollection.cs
- ConfigurationValidatorAttribute.cs
- OleDbStruct.cs
- DesignerCategoryAttribute.cs
- XPathItem.cs
- GacUtil.cs
- Configuration.cs
- XPathAncestorIterator.cs
- WebServiceHost.cs
- ExpressionBuilderContext.cs
- ThemeDirectoryCompiler.cs
- XmlIgnoreAttribute.cs
- MethodBody.cs
- FormatterConverter.cs
- CqlParser.cs
- HttpEncoderUtility.cs
- SizeConverter.cs
- ExtensionSimplifierMarkupObject.cs
- LocalClientSecuritySettingsElement.cs
- SecurityContextSecurityTokenParameters.cs
- MSAANativeProvider.cs
- NumericUpDownAcceleration.cs
- GetCardDetailsRequest.cs
- PixelFormats.cs
- HttpRequestContext.cs
- ServiceEndpointElementCollection.cs
- _CommandStream.cs
- WebPartDisplayModeCollection.cs
- CloudCollection.cs
- RegexMatchCollection.cs
- ToolBarButton.cs
- RuntimeHelpers.cs
- UpdatableGenericsFeature.cs
- ColorConvertedBitmap.cs
- WindowClosedEventArgs.cs