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
- Style.cs
- CodeExpressionCollection.cs
- BitmapCacheBrush.cs
- DecoderExceptionFallback.cs
- NamespaceQuery.cs
- XmlSchemaAttribute.cs
- GridLengthConverter.cs
- HttpWebRequest.cs
- ProcessModule.cs
- TiffBitmapDecoder.cs
- PartitionedDataSource.cs
- InitializerFacet.cs
- Form.cs
- CodeNamespaceImport.cs
- DataObjectMethodAttribute.cs
- RawTextInputReport.cs
- BasicHttpBindingElement.cs
- PropertyMappingExceptionEventArgs.cs
- SQLChars.cs
- ToolStripPanelDesigner.cs
- ConstructorExpr.cs
- HitTestResult.cs
- PageContentAsyncResult.cs
- EntityTemplateFactory.cs
- PackageProperties.cs
- Vector3DConverter.cs
- SQLRoleProvider.cs
- hresults.cs
- ConsumerConnectionPointCollection.cs
- FastEncoderWindow.cs
- AnnotationComponentManager.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- RenamedEventArgs.cs
- EntityDataSourceView.cs
- WindowsIdentity.cs
- ViewManagerAttribute.cs
- securestring.cs
- AsyncStreamReader.cs
- AxHost.cs
- DocumentOrderQuery.cs
- NameTable.cs
- TreeBuilder.cs
- NullableBoolConverter.cs
- SqlProfileProvider.cs
- PeerCollaboration.cs
- WebPartTransformerCollection.cs
- WorkflowItemPresenter.cs
- backend.cs
- VersionValidator.cs
- XmlCountingReader.cs
- ToolBarButton.cs
- WeakEventTable.cs
- ApplicationInfo.cs
- TextSelectionProcessor.cs
- AliasExpr.cs
- CodeObject.cs
- VirtualDirectoryMapping.cs
- BaseProcessProtocolHandler.cs
- DPTypeDescriptorContext.cs
- AvtEvent.cs
- Variable.cs
- PropertyPathWorker.cs
- AssociationSet.cs
- InlineCollection.cs
- AmbientProperties.cs
- ObjectDataSourceMethodEventArgs.cs
- DefaultCommandConverter.cs
- TagPrefixCollection.cs
- MenuItemCollection.cs
- PathParser.cs
- HtmlControlAdapter.cs
- DelegateTypeInfo.cs
- ProxyFragment.cs
- DecimalAnimationUsingKeyFrames.cs
- RepeatBehavior.cs
- ListManagerBindingsCollection.cs
- SiteMapNodeItemEventArgs.cs
- SmiTypedGetterSetter.cs
- BamlLocalizableResource.cs
- TabPanel.cs
- DynamicValidator.cs
- VariableBinder.cs
- XpsThumbnail.cs
- TextEndOfParagraph.cs
- TranslateTransform3D.cs
- SeekStoryboard.cs
- DbModificationClause.cs
- CompensateDesigner.cs
- FamilyTypefaceCollection.cs
- WrapPanel.cs
- LongValidatorAttribute.cs
- ChannelCacheSettings.cs
- XPathQueryGenerator.cs
- ElementAction.cs
- Msec.cs
- GetWinFXPath.cs
- HtmlInputReset.cs
- CellQuery.cs
- TlsnegoTokenAuthenticator.cs
- DataGridCommandEventArgs.cs