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
- propertytag.cs
- ListViewDataItem.cs
- InkSerializer.cs
- MarshalDirectiveException.cs
- PTProvider.cs
- TextSchema.cs
- GridViewSelectEventArgs.cs
- SmiRecordBuffer.cs
- UIPermission.cs
- XmlNavigatorStack.cs
- COM2ColorConverter.cs
- TreeNodeStyleCollection.cs
- BinaryParser.cs
- ThumbButtonInfoCollection.cs
- RangeContentEnumerator.cs
- IRCollection.cs
- PropertiesTab.cs
- WebBaseEventKeyComparer.cs
- ListViewCancelEventArgs.cs
- SqlBulkCopy.cs
- MachineKeySection.cs
- StylusPointPropertyId.cs
- UpDownEvent.cs
- MouseCaptureWithinProperty.cs
- TypefaceMetricsCache.cs
- SystemWebCachingSectionGroup.cs
- versioninfo.cs
- PathStreamGeometryContext.cs
- ControlType.cs
- ProfileSettings.cs
- SystemInformation.cs
- BitmapFrameDecode.cs
- AttachmentCollection.cs
- SqlRecordBuffer.cs
- RouteCollection.cs
- SqlTypesSchemaImporter.cs
- XmlDocument.cs
- SqlProvider.cs
- NetworkStream.cs
- DataGridPreparingCellForEditEventArgs.cs
- WbemProvider.cs
- Brush.cs
- SelectionProcessor.cs
- TableStyle.cs
- GenericUriParser.cs
- ResumeStoryboard.cs
- SpeechSeg.cs
- ComAwareEventInfo.cs
- Highlights.cs
- SqlCommandAsyncResult.cs
- DbConnectionPoolCounters.cs
- SelectionItemProviderWrapper.cs
- DLinqColumnProvider.cs
- IIS7UserPrincipal.cs
- FormsAuthenticationCredentials.cs
- ListBox.cs
- Int32Rect.cs
- BrowserDefinitionCollection.cs
- ViewUtilities.cs
- InputBinding.cs
- TextTreeObjectNode.cs
- Deflater.cs
- Page.cs
- XmlQueryType.cs
- Slider.cs
- SafeLocalMemHandle.cs
- PropertyFilter.cs
- GlyphRun.cs
- Symbol.cs
- ContextCorrelationInitializer.cs
- BaseHashHelper.cs
- FormViewModeEventArgs.cs
- HandoffBehavior.cs
- WebPartManagerInternals.cs
- FrameDimension.cs
- CapabilitiesSection.cs
- ScaleTransform3D.cs
- ClientOptions.cs
- VersionedStreamOwner.cs
- AnonymousIdentificationModule.cs
- TypeConverterValueSerializer.cs
- OutputScopeManager.cs
- ExpandCollapsePattern.cs
- InternalResources.cs
- BamlTreeMap.cs
- SolidColorBrush.cs
- HandlerElement.cs
- SplitterPanel.cs
- IndexedWhereQueryOperator.cs
- TextTreeTextElementNode.cs
- DataTransferEventArgs.cs
- HtmlControl.cs
- EntityDataSourceDesignerHelper.cs
- TextWriterTraceListener.cs
- LowerCaseStringConverter.cs
- SR.Designer.cs
- FastPropertyAccessor.cs
- SamlAudienceRestrictionCondition.cs
- Int32RectConverter.cs
- CommandField.cs