Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Mapping / MappingItemCollection.cs / 2 / MappingItemCollection.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....], [....]
//---------------------------------------------------------------------
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.
///
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 [....], [....]
//---------------------------------------------------------------------
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.
///
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
- ColorContextHelper.cs
- CursorConverter.cs
- CqlParserHelpers.cs
- XsltSettings.cs
- ListBoxChrome.cs
- WebPartEditorApplyVerb.cs
- Point3DValueSerializer.cs
- SyndicationPerson.cs
- RootBrowserWindowProxy.cs
- PlainXmlSerializer.cs
- ActivityBuilderHelper.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PageMediaType.cs
- FreeFormDesigner.cs
- StylusButton.cs
- IChannel.cs
- DataView.cs
- StringCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- HttpWriter.cs
- Function.cs
- Wizard.cs
- ContainerSelectorBehavior.cs
- SiteOfOriginPart.cs
- WpfSharedBamlSchemaContext.cs
- WindowShowOrOpenTracker.cs
- ParamArrayAttribute.cs
- EditingCoordinator.cs
- MSAANativeProvider.cs
- SettingsPropertyNotFoundException.cs
- WhereQueryOperator.cs
- DesignTimeParseData.cs
- DataGridViewCellStyleEditor.cs
- WebPartConnectionsCloseVerb.cs
- ShaderEffect.cs
- HttpCachePolicy.cs
- InvalidBodyAccessException.cs
- ObjectNotFoundException.cs
- GenericEnumConverter.cs
- SafeNativeMethods.cs
- ButtonColumn.cs
- AsynchronousChannelMergeEnumerator.cs
- ExpandCollapseProviderWrapper.cs
- Stylus.cs
- EventWaitHandleSecurity.cs
- SelfIssuedTokenFactoryCredential.cs
- DesignerContextDescriptor.cs
- SharedUtils.cs
- ReplacementText.cs
- FaultDescriptionCollection.cs
- HScrollBar.cs
- FixedPageStructure.cs
- UpdateTracker.cs
- TileBrush.cs
- iisPickupDirectory.cs
- SizeAnimationClockResource.cs
- BinaryMessageEncodingBindingElement.cs
- LoginName.cs
- CheckBoxBaseAdapter.cs
- BaseTreeIterator.cs
- fixedPageContentExtractor.cs
- IndependentAnimationStorage.cs
- ParagraphResult.cs
- PageStatePersister.cs
- MetadataExporter.cs
- UpdatePanelTriggerCollection.cs
- FixedTextBuilder.cs
- Int32AnimationUsingKeyFrames.cs
- MyContact.cs
- Label.cs
- PenCursorManager.cs
- DataGridViewTopLeftHeaderCell.cs
- hwndwrapper.cs
- StartUpEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- isolationinterop.cs
- MediaPlayerState.cs
- EncryptedReference.cs
- OleDbReferenceCollection.cs
- DataGridCellInfo.cs
- TargetControlTypeCache.cs
- RangeEnumerable.cs
- EventlogProvider.cs
- SchemaInfo.cs
- WebPartManager.cs
- _NTAuthentication.cs
- XmlDataProvider.cs
- TextElement.cs
- XmlTextReader.cs
- UriTemplate.cs
- SecurityDocument.cs
- ArraySubsetEnumerator.cs
- Image.cs
- XmlProcessingInstruction.cs
- StreamWriter.cs
- InvalidPrinterException.cs
- ConfigXmlText.cs
- VisualStyleElement.cs
- HttpException.cs
- LabelEditEvent.cs