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
- ExtensionWindowResizeGrip.cs
- WebContext.cs
- MemberHolder.cs
- RelationshipSet.cs
- ClrPerspective.cs
- SystemKeyConverter.cs
- RolePrincipal.cs
- IERequestCache.cs
- PanelDesigner.cs
- Merger.cs
- ImageAttributes.cs
- Font.cs
- FileUtil.cs
- FixedNode.cs
- safex509handles.cs
- OleDbCommand.cs
- MediaEntryAttribute.cs
- CachedTypeface.cs
- ImageKeyConverter.cs
- Scripts.cs
- ActivityBuilderHelper.cs
- TableRow.cs
- NavigationFailedEventArgs.cs
- ActivityTypeDesigner.xaml.cs
- ImageList.cs
- SizeLimitedCache.cs
- HashJoinQueryOperatorEnumerator.cs
- PrimaryKeyTypeConverter.cs
- WebPartsPersonalization.cs
- FileDialogPermission.cs
- FocusWithinProperty.cs
- EncoderParameter.cs
- TraceHwndHost.cs
- AlphaSortedEnumConverter.cs
- GroupByExpressionRewriter.cs
- TreeNodeSelectionProcessor.cs
- PointLight.cs
- ClientRolePrincipal.cs
- SqlRewriteScalarSubqueries.cs
- TextDecorationLocationValidation.cs
- FieldAccessException.cs
- Module.cs
- EnlistmentState.cs
- FrameworkElement.cs
- CustomAttributeBuilder.cs
- XmlElementAttributes.cs
- ListViewHitTestInfo.cs
- SQLSingle.cs
- TrackBarRenderer.cs
- Transform.cs
- WeakKeyDictionary.cs
- OdbcConnectionPoolProviderInfo.cs
- BamlVersionHeader.cs
- WebPartCloseVerb.cs
- HeaderedItemsControl.cs
- PathParser.cs
- BlockingCollection.cs
- Console.cs
- EdmItemCollection.cs
- WorkItem.cs
- SplitterCancelEvent.cs
- PropertyConverter.cs
- EntityDesignerUtils.cs
- OracleRowUpdatedEventArgs.cs
- EdmFunction.cs
- ListViewItemSelectionChangedEvent.cs
- ConstNode.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BamlResourceContent.cs
- ProcessInfo.cs
- RenderCapability.cs
- ObjRef.cs
- TypeHelpers.cs
- Misc.cs
- InputLanguageManager.cs
- KeyboardEventArgs.cs
- DataGridParentRows.cs
- WebService.cs
- AuthenticationConfig.cs
- XPathEmptyIterator.cs
- OleDbEnumerator.cs
- PageParser.cs
- MdiWindowListStrip.cs
- Rfc2898DeriveBytes.cs
- PolyBezierSegment.cs
- SemaphoreSecurity.cs
- ReliableMessagingVersionConverter.cs
- HttpHandlerAction.cs
- CultureSpecificStringDictionary.cs
- FindCriteriaApril2005.cs
- _SSPIWrapper.cs
- StructuredTypeInfo.cs
- SecurityHelper.cs
- SHA384.cs
- ForAllOperator.cs
- AnimationLayer.cs
- Deserializer.cs
- OdbcConnectionOpen.cs
- SoapAttributes.cs
- SmiEventSink.cs