Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Mapping / StoragePropertyMapping.cs / 1 / StoragePropertyMapping.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Data.Metadata.Edm;
namespace System.Data.Mapping {
///
/// Mapping metadata for all types of property mappings.
///
///
/// For Example if conceptually you could represent the CS MSL file as following
/// --Mapping
/// --EntityContainerMapping ( CNorthwind-->SNorthwind )
/// --EntitySetMapping
/// --EntityTypeMapping
/// --TableMappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --EntityTypeMapping
/// --TableMappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ComplexPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --ScalarPropertyMap
/// --AssociationSetMapping
/// --AssociationTypeMapping
/// --TableMappingFragment
/// --EndPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --EndPropertyMap
/// --ScalarPropertyMap
/// --EntityContainerMapping ( CMyDatabase-->SMyDatabase )
/// --CompositionSetMapping
/// --CompositionTypeMapping
/// --TableMappingFragment
/// --ParentEntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --EntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --ComplexPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --ScalarPropertyMap
/// This class represents the metadata for all property map elements in the
/// above example. This includes the scalar property maps, complex property maps
/// and end property maps.
///
internal abstract class StoragePropertyMapping {
#region Constructors
///
/// Construct a new EdmProperty mapping object
///
/// The PropertyMetadata object that represents the member for which mapping is being specified
internal StoragePropertyMapping(EdmProperty cdmMember) {
this.m_cdmMember = cdmMember;
}
#endregion
#region Fields
EdmProperty m_cdmMember; //EdmProperty metadata representing the Cdm member for which the mapping is specified
#endregion
#region Properties
///
/// The PropertyMetadata object that represents the member for which mapping is being specified
///
internal virtual EdmProperty EdmProperty
{
get {
return this.m_cdmMember;
}
}
#endregion
#region Methods
///
/// This method is primarily for debugging purposes.
/// Will be removed shortly.
///
///
internal virtual void Print(int index) {
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Data.Metadata.Edm;
namespace System.Data.Mapping {
///
/// Mapping metadata for all types of property mappings.
///
///
/// For Example if conceptually you could represent the CS MSL file as following
/// --Mapping
/// --EntityContainerMapping ( CNorthwind-->SNorthwind )
/// --EntitySetMapping
/// --EntityTypeMapping
/// --TableMappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --EntityTypeMapping
/// --TableMappingFragment
/// --EntityKey
/// --ScalarPropertyMap
/// --ComplexPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --ScalarPropertyMap
/// --AssociationSetMapping
/// --AssociationTypeMapping
/// --TableMappingFragment
/// --EndPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --EndPropertyMap
/// --ScalarPropertyMap
/// --EntityContainerMapping ( CMyDatabase-->SMyDatabase )
/// --CompositionSetMapping
/// --CompositionTypeMapping
/// --TableMappingFragment
/// --ParentEntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --EntityKey
/// --ScalarPropertyMap
/// --ScalarPropertyMap
/// --ComplexPropertyMap
/// --ScalarPropertyMap
/// --ScalarProperyMap
/// --ScalarPropertyMap
/// This class represents the metadata for all property map elements in the
/// above example. This includes the scalar property maps, complex property maps
/// and end property maps.
///
internal abstract class StoragePropertyMapping {
#region Constructors
///
/// Construct a new EdmProperty mapping object
///
/// The PropertyMetadata object that represents the member for which mapping is being specified
internal StoragePropertyMapping(EdmProperty cdmMember) {
this.m_cdmMember = cdmMember;
}
#endregion
#region Fields
EdmProperty m_cdmMember; //EdmProperty metadata representing the Cdm member for which the mapping is specified
#endregion
#region Properties
///
/// The PropertyMetadata object that represents the member for which mapping is being specified
///
internal virtual EdmProperty EdmProperty
{
get {
return this.m_cdmMember;
}
}
#endregion
#region Methods
///
/// This method is primarily for debugging purposes.
/// Will be removed shortly.
///
///
internal virtual void Print(int index) {
}
#endregion
}
}
// 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
- HttpCookiesSection.cs
- CodeRemoveEventStatement.cs
- ArraySortHelper.cs
- StrokeCollection.cs
- QueuePropertyVariants.cs
- KerberosRequestorSecurityToken.cs
- ConstructorBuilder.cs
- Renderer.cs
- NameValueSectionHandler.cs
- WebDescriptionAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- ScriptControlDescriptor.cs
- EventPropertyMap.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- GeometryHitTestParameters.cs
- FormatterServices.cs
- SoapIgnoreAttribute.cs
- RuleSettingsCollection.cs
- WebExceptionStatus.cs
- CustomAttributeFormatException.cs
- MetaForeignKeyColumn.cs
- KeyboardDevice.cs
- SessionStateSection.cs
- OdbcStatementHandle.cs
- CodeRegionDirective.cs
- DbDataSourceEnumerator.cs
- Rotation3DAnimation.cs
- SmtpNetworkElement.cs
- Win32SafeHandles.cs
- HandlerMappingMemo.cs
- ButtonStandardAdapter.cs
- FullTextLine.cs
- Facet.cs
- BindingEditor.xaml.cs
- IDictionary.cs
- CodeMemberMethod.cs
- TableColumnCollectionInternal.cs
- DateTimeStorage.cs
- IdleTimeoutMonitor.cs
- FileDialog_Vista_Interop.cs
- ToolTipService.cs
- InkCanvas.cs
- ImmutablePropertyDescriptorGridEntry.cs
- HitTestParameters.cs
- HttpEncoder.cs
- KnownBoxes.cs
- FilteredDataSetHelper.cs
- HtmlInputCheckBox.cs
- TreeNodeBinding.cs
- ObjectDisposedException.cs
- DateTime.cs
- EarlyBoundInfo.cs
- DashStyles.cs
- DictionaryContent.cs
- ClientApiGenerator.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- WorkItem.cs
- MatrixIndependentAnimationStorage.cs
- CompilerError.cs
- RegistryExceptionHelper.cs
- ConditionValidator.cs
- NaturalLanguageHyphenator.cs
- ListViewItem.cs
- CachedPathData.cs
- TraceContextEventArgs.cs
- DataGridViewUtilities.cs
- VirtualPathExtension.cs
- DefaultPropertyAttribute.cs
- PrintingPermission.cs
- TdsParser.cs
- UTF32Encoding.cs
- WrappedIUnknown.cs
- SqlDataSourceView.cs
- XmlSchemaAll.cs
- PlaceHolder.cs
- CodeTypeParameter.cs
- PartManifestEntry.cs
- AppSettingsReader.cs
- SmtpReplyReader.cs
- XmlSchemaExporter.cs
- BasicAsyncResult.cs
- DataStreamFromComStream.cs
- RegexCompilationInfo.cs
- SafeMILHandle.cs
- SqlMethodTransformer.cs
- SimpleModelProvider.cs
- Section.cs
- DataGridViewCellStyleConverter.cs
- KeyedCollection.cs
- assemblycache.cs
- DescendentsWalker.cs
- InlineCollection.cs
- FilterEventArgs.cs
- MimeXmlImporter.cs
- ConfigXmlAttribute.cs
- IdentityNotMappedException.cs
- OleDbFactory.cs
- HtmlLink.cs
- ListItemViewAttribute.cs
- XPathDocumentBuilder.cs