Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipNavigationPropertyAttribute.cs / 1305376 / EdmRelationshipNavigationPropertyAttribute.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
namespace System.Data.Objects.DataClasses
{
///
/// Attribute identifying the Ends defined for a RelationshipSet
/// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False,
/// The metadata system expects this and will only look at the first of each of these attributes, even if there are more.
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
[AttributeUsage(AttributeTargets.Property)]
public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute
{
private string _relationshipNamespaceName;
private string _relationshipName;
private string _targetRoleName;
///
/// Attribute identifying the Ends defined for a RelationshipSet
///
public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName)
{
_relationshipNamespaceName = relationshipNamespaceName;
_relationshipName = relationshipName;
_targetRoleName = targetRoleName;
}
///
/// the namespace name of the relationship
///
public string RelationshipNamespaceName
{
get { return _relationshipNamespaceName; }
}
///
/// the relationship name
///
public string RelationshipName
{
get { return _relationshipName; }
}
///
/// the target role name
///
public string TargetRoleName
{
get { return _targetRoleName; }
}
}
}
// 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
- sqlinternaltransaction.cs
- HttpUnhandledOperationInvoker.cs
- CodeIdentifiers.cs
- XmlNullResolver.cs
- CorePropertiesFilter.cs
- CodeCatchClauseCollection.cs
- DelegateHelpers.Generated.cs
- XPathNavigatorReader.cs
- DebugController.cs
- Base64Decoder.cs
- GlobalProxySelection.cs
- CqlParserHelpers.cs
- CreateWorkflowOwnerCommand.cs
- XmlSchemaSubstitutionGroup.cs
- SystemFonts.cs
- TextRunTypographyProperties.cs
- GiveFeedbackEvent.cs
- RegisteredScript.cs
- ButtonAutomationPeer.cs
- TextInfo.cs
- SoapEnumAttribute.cs
- ArrayList.cs
- InternalBufferOverflowException.cs
- CompletionCallbackWrapper.cs
- SafeTokenHandle.cs
- FileBasedResourceGroveler.cs
- OleDbStruct.cs
- SecurityAccessDeniedException.cs
- PartialCachingAttribute.cs
- KerberosRequestorSecurityToken.cs
- DefaultValueConverter.cs
- FrameworkName.cs
- UriTemplate.cs
- XmlSchemaObject.cs
- VirtualPathUtility.cs
- BlurBitmapEffect.cs
- SchemaEntity.cs
- EdmToObjectNamespaceMap.cs
- PageFunction.cs
- MatrixTransform3D.cs
- CreateParams.cs
- CharUnicodeInfo.cs
- ExeConfigurationFileMap.cs
- ExpressionDumper.cs
- SQLInt32Storage.cs
- DetailsViewDeletedEventArgs.cs
- PointLight.cs
- BinaryObjectReader.cs
- ArrayTypeMismatchException.cs
- NGCPageContentCollectionSerializerAsync.cs
- MouseBinding.cs
- DataGridBeginningEditEventArgs.cs
- cookie.cs
- UnmanagedBitmapWrapper.cs
- FaultException.cs
- OperationContext.cs
- CodeNamespaceCollection.cs
- Freezable.cs
- LeafCellTreeNode.cs
- ITextView.cs
- Choices.cs
- SynchronizationHandlesCodeDomSerializer.cs
- PreviewPageInfo.cs
- RtfControls.cs
- CancellationTokenSource.cs
- SafeRegistryHandle.cs
- PromptBuilder.cs
- QuadraticBezierSegment.cs
- RoutedUICommand.cs
- EntityTypeEmitter.cs
- SqlRecordBuffer.cs
- TableAutomationPeer.cs
- UnsafeNativeMethods.cs
- PageCache.cs
- ListViewDesigner.cs
- NavigationProgressEventArgs.cs
- XmlRootAttribute.cs
- TextEditorDragDrop.cs
- ReadOnlyDictionary.cs
- InternalConfigEventArgs.cs
- OneOfScalarConst.cs
- Aggregates.cs
- SectionVisual.cs
- SafeIUnknown.cs
- X509Utils.cs
- _DisconnectOverlappedAsyncResult.cs
- WebContext.cs
- WebPartConnectVerb.cs
- SectionRecord.cs
- GroupBox.cs
- DragDrop.cs
- BaseParaClient.cs
- RepeatButtonAutomationPeer.cs
- ResolveNameEventArgs.cs
- FileDetails.cs
- FrameworkElementAutomationPeer.cs
- Matrix3DValueSerializer.cs
- MappingModelBuildProvider.cs
- ConfigurationValue.cs
- HTMLTagNameToTypeMapper.cs