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
- FolderLevelBuildProviderCollection.cs
- AutoScrollHelper.cs
- SharedRuntimeState.cs
- GridViewUpdateEventArgs.cs
- QuaternionConverter.cs
- BypassElementCollection.cs
- ResourceSet.cs
- WebFormsRootDesigner.cs
- KoreanCalendar.cs
- MetadataPropertyCollection.cs
- TypedElement.cs
- IPPacketInformation.cs
- TemplateControlBuildProvider.cs
- Bookmark.cs
- OperatingSystem.cs
- CodeDesigner.cs
- PipelineComponent.cs
- CDSCollectionETWBCLProvider.cs
- NavigationProperty.cs
- MetadataArtifactLoaderComposite.cs
- HtmlSelect.cs
- FontResourceCache.cs
- DragEvent.cs
- SQLSingle.cs
- Parser.cs
- ClientRuntimeConfig.cs
- DataContractSerializerElement.cs
- CacheEntry.cs
- Section.cs
- PartBasedPackageProperties.cs
- EntityWrapper.cs
- SemanticBasicElement.cs
- NativeMethods.cs
- XmlResolver.cs
- ContentFileHelper.cs
- InlineUIContainer.cs
- Graphics.cs
- HtmlTableCell.cs
- FacetChecker.cs
- WebPageTraceListener.cs
- PropertyGridDesigner.cs
- RectangleGeometry.cs
- EraserBehavior.cs
- ViewStateException.cs
- GridViewHeaderRowPresenter.cs
- TdsParserHelperClasses.cs
- BaseValidator.cs
- XmlMtomReader.cs
- IsolatedStorage.cs
- OutputCacheProfileCollection.cs
- FileAuthorizationModule.cs
- DataAdapter.cs
- WebPartManagerInternals.cs
- DiagnosticTrace.cs
- ExceptionUtil.cs
- TextEditorTables.cs
- GridViewRowEventArgs.cs
- StringComparer.cs
- ButtonChrome.cs
- BinaryCommonClasses.cs
- BooleanSwitch.cs
- FormsAuthenticationUser.cs
- BinaryUtilClasses.cs
- RegexCode.cs
- BulletedListDesigner.cs
- Registry.cs
- Vector3D.cs
- XmlImplementation.cs
- ResourceDictionary.cs
- CreateUserErrorEventArgs.cs
- XmlNodeReader.cs
- WindowsHyperlink.cs
- Semaphore.cs
- KeySplineConverter.cs
- AssemblyBuilderData.cs
- SplineQuaternionKeyFrame.cs
- DodSequenceMerge.cs
- SqlDataAdapter.cs
- ForceCopyBuildProvider.cs
- PathSegmentCollection.cs
- SessionEndedEventArgs.cs
- ScrollableControl.cs
- MarshalByRefObject.cs
- EntityTypeEmitter.cs
- HeaderUtility.cs
- StreamReader.cs
- HMACSHA512.cs
- CdpEqualityComparer.cs
- ToolStripManager.cs
- ToolStripMenuItem.cs
- DependentTransaction.cs
- CommunicationException.cs
- ToolStrip.cs
- Tool.cs
- ElementHost.cs
- BitmapFrameDecode.cs
- MiniLockedBorderGlyph.cs
- PriorityBinding.cs
- CollectionChange.cs
- BitmapEffect.cs