Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Mapping / MappingItemCollection.cs / 1305376 / MappingItemCollection.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data.Metadata.Edm;
using System.Xml;
using System.Xml.Schema;
namespace System.Data.Mapping
{
///
/// Class for representing a collection of mapping items in Edm space.
///
[CLSCompliant(false)]
public abstract class MappingItemCollection : ItemCollection
{
///
/// The default constructor for ItemCollection
///
internal MappingItemCollection(DataSpace dataSpace) : base(dataSpace)
{
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
///
/// Returns false if no match found.
internal virtual bool TryGetMap(string identity, DataSpace typeSpace, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
///
internal virtual Map GetMap(GlobalItem item)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
///
///
/// Returns false if no match found.
internal virtual bool TryGetMap(GlobalItem item, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// true for case-insensitive lookup
/// Thrown if mapping space is not valid
internal virtual Map GetMap(string identity, DataSpace typeSpace, bool ignoreCase)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// true for case-insensitive lookup
///
/// Returns false if no match found.
internal virtual bool TryGetMap(string identity, DataSpace typeSpace, bool ignoreCase, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// Thrown if mapping space is not valid
internal virtual Map GetMap(string identity, DataSpace typeSpace)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
}//---- ItemCollection
}//----
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data.Metadata.Edm;
using System.Xml;
using System.Xml.Schema;
namespace System.Data.Mapping
{
///
/// Class for representing a collection of mapping items in Edm space.
///
[CLSCompliant(false)]
public abstract class MappingItemCollection : ItemCollection
{
///
/// The default constructor for ItemCollection
///
internal MappingItemCollection(DataSpace dataSpace) : base(dataSpace)
{
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
///
/// Returns false if no match found.
internal virtual bool TryGetMap(string identity, DataSpace typeSpace, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
///
internal virtual Map GetMap(GlobalItem item)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
///
///
/// Returns false if no match found.
internal virtual bool TryGetMap(GlobalItem item, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// true for case-insensitive lookup
/// Thrown if mapping space is not valid
internal virtual Map GetMap(string identity, DataSpace typeSpace, bool ignoreCase)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// true for case-insensitive lookup
///
/// Returns false if no match found.
internal virtual bool TryGetMap(string identity, DataSpace typeSpace, bool ignoreCase, out Map map)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
///
/// Search for a Mapping metadata with the specified type key.
///
/// identity of the type
/// The dataspace that the type for which map needs to be returned belongs to
/// Thrown if mapping space is not valid
internal virtual Map GetMap(string identity, DataSpace typeSpace)
{
//will only be implemented by Mapping Item Collections
throw System.Data.Entity.Error.NotSupported();
}
}//---- ItemCollection
}//----
// 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
- XsltConvert.cs
- SHA384Managed.cs
- NavigationWindow.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PrimaryKeyTypeConverter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- VersionConverter.cs
- DataGridViewTextBoxEditingControl.cs
- RemoteCryptoSignHashRequest.cs
- DataGridViewTextBoxEditingControl.cs
- XsltOutput.cs
- Rect3DConverter.cs
- WizardPanel.cs
- CodeArrayCreateExpression.cs
- basemetadatamappingvisitor.cs
- ConnectionManagementSection.cs
- RenderingEventArgs.cs
- BitmapEffectOutputConnector.cs
- HttpCacheVaryByContentEncodings.cs
- CharAnimationUsingKeyFrames.cs
- TextProperties.cs
- SoapExtension.cs
- SymbolPair.cs
- HtmlListAdapter.cs
- Int16AnimationUsingKeyFrames.cs
- DeviceSpecificChoiceCollection.cs
- GridViewPageEventArgs.cs
- Image.cs
- QilValidationVisitor.cs
- RSAPKCS1SignatureFormatter.cs
- BitmapEffectInputData.cs
- DataMemberFieldEditor.cs
- HttpException.cs
- XmlDesignerDataSourceView.cs
- HtmlGenericControl.cs
- PeerInputChannelListener.cs
- InputEventArgs.cs
- URL.cs
- TableParagraph.cs
- DataSourceExpressionCollection.cs
- TextMarkerSource.cs
- CancelEventArgs.cs
- DashStyles.cs
- EncodingInfo.cs
- ImmutableObjectAttribute.cs
- AutoGeneratedField.cs
- HierarchicalDataBoundControlAdapter.cs
- InheritanceRules.cs
- ExpressionCopier.cs
- ImmutableAssemblyCacheEntry.cs
- Message.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- XpsSerializationManagerAsync.cs
- Vector.cs
- OpenTypeMethods.cs
- MailDefinition.cs
- XhtmlBasicPanelAdapter.cs
- TextEffect.cs
- EventRoute.cs
- _BaseOverlappedAsyncResult.cs
- SqlLiftIndependentRowExpressions.cs
- GlyphElement.cs
- RecipientInfo.cs
- HTTPRemotingHandler.cs
- ForeignKeyConstraint.cs
- QilDataSource.cs
- FlowPosition.cs
- NonParentingControl.cs
- NameValueCache.cs
- EventLogPropertySelector.cs
- DynamicValueConverter.cs
- XmlDocumentSchema.cs
- PerspectiveCamera.cs
- DataGrid.cs
- TemplateControlParser.cs
- ItemCollection.cs
- Encoder.cs
- OleDbEnumerator.cs
- DbMetaDataCollectionNames.cs
- TextSimpleMarkerProperties.cs
- BlobPersonalizationState.cs
- CapabilitiesSection.cs
- DynamicResourceExtensionConverter.cs
- EntityClassGenerator.cs
- DependencyPropertyKind.cs
- MatchingStyle.cs
- FilterEventArgs.cs
- CustomErrorsSectionWrapper.cs
- XmlMemberMapping.cs
- DashStyle.cs
- Screen.cs
- XmlSerializationGeneratedCode.cs
- TypeTypeConverter.cs
- BaseComponentEditor.cs
- Item.cs
- BadImageFormatException.cs
- TextTreeDeleteContentUndoUnit.cs
- ValidatedMobileControlConverter.cs
- CheckBoxRenderer.cs
- ScriptRegistrationManager.cs