Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / MetadataItemCollectionFactory.cs / 2 / 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
- TickBar.cs
- ShellProvider.cs
- XmlQuerySequence.cs
- DataGridViewColumnTypeEditor.cs
- XPathSelfQuery.cs
- DataControlImageButton.cs
- JavascriptCallbackBehaviorAttribute.cs
- XmlSignatureProperties.cs
- TextBox.cs
- TypeHelper.cs
- GroupByQueryOperator.cs
- Path.cs
- BitmapEffectDrawing.cs
- BStrWrapper.cs
- OneOfScalarConst.cs
- StaticExtensionConverter.cs
- TypeBuilder.cs
- MatrixTransform.cs
- BodyWriter.cs
- NonParentingControl.cs
- autovalidator.cs
- BooleanStorage.cs
- DecimalFormatter.cs
- MemberDomainMap.cs
- XmlLangPropertyAttribute.cs
- SystemMulticastIPAddressInformation.cs
- DocumentDesigner.cs
- MetadataWorkspace.cs
- Type.cs
- MenuItemBinding.cs
- Int32AnimationUsingKeyFrames.cs
- PropertySourceInfo.cs
- AssemblyFilter.cs
- RuleProcessor.cs
- ProgressBarAutomationPeer.cs
- ThemeInfoAttribute.cs
- SafeHandles.cs
- SplitterCancelEvent.cs
- InstanceHandleReference.cs
- Clipboard.cs
- ToolCreatedEventArgs.cs
- TypeUsageBuilder.cs
- FixedPage.cs
- RawKeyboardInputReport.cs
- WebPartsSection.cs
- PackageRelationship.cs
- Stopwatch.cs
- DBDataPermissionAttribute.cs
- HtmlInputImage.cs
- Rfc4050KeyFormatter.cs
- ListBase.cs
- Utilities.cs
- AssemblyAttributesGoHere.cs
- NextPreviousPagerField.cs
- Composition.cs
- DbConnectionOptions.cs
- ArraySegment.cs
- EpmSyndicationContentDeSerializer.cs
- PropertyMetadata.cs
- IIS7WorkerRequest.cs
- ControlPropertyNameConverter.cs
- WebServiceClientProxyGenerator.cs
- PropertyTabAttribute.cs
- StringReader.cs
- ServerValidateEventArgs.cs
- ToolStripContentPanelRenderEventArgs.cs
- ActivityExecutor.cs
- SoapAttributeOverrides.cs
- GenerateScriptTypeAttribute.cs
- ListDictionary.cs
- SymbolType.cs
- SrgsSemanticInterpretationTag.cs
- DateTimeFormatInfoScanner.cs
- EndpointDiscoveryMetadataCD1.cs
- DesignBindingValueUIHandler.cs
- WebPartEditVerb.cs
- Globals.cs
- ContractUtils.cs
- EventWaitHandleSecurity.cs
- SerTrace.cs
- GacUtil.cs
- DropDownList.cs
- DataGridViewTopRowAccessibleObject.cs
- HttpCapabilitiesSectionHandler.cs
- FullTextLine.cs
- ConfigurationStrings.cs
- JapaneseCalendar.cs
- XmlConvert.cs
- XmlSchemaValidator.cs
- BuildResultCache.cs
- WebDisplayNameAttribute.cs
- CatalogZone.cs
- QueryGeneratorBase.cs
- JavaScriptSerializer.cs
- DataFormat.cs
- WindowsGraphics.cs
- PropertyExpression.cs
- hresults.cs
- DesignerSerializationManager.cs
- MetadataHelper.cs