//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Mapping
{
using System;
using System.Data.Metadata.Edm;
///
/// 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
}//----