Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Objects / DataClasses / EdmRelationshipNavigationPropertyAttribute.cs / 2 / 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.
//----------------------------------------------------------------------
//
// 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
- JournalEntry.cs
- COMException.cs
- CodeNamespaceImport.cs
- SystemWebExtensionsSectionGroup.cs
- XamlSerializerUtil.cs
- RecipientInfo.cs
- SvcMapFile.cs
- PixelFormats.cs
- BulletedList.cs
- XmlCountingReader.cs
- CompilerParameters.cs
- CalendarTable.cs
- GradientStopCollection.cs
- AnchoredBlock.cs
- BindingExpressionBase.cs
- wgx_commands.cs
- NamedPipeTransportElement.cs
- FileLogRecord.cs
- util.cs
- SqlConnectionPoolProviderInfo.cs
- PassportPrincipal.cs
- ClientRolePrincipal.cs
- SecurityAttributeGenerationHelper.cs
- EventMappingSettingsCollection.cs
- Transform3D.cs
- _LocalDataStore.cs
- EmptyCollection.cs
- SiteOfOriginContainer.cs
- DynamicObject.cs
- SoapHeaders.cs
- FixUpCollection.cs
- FilteredXmlReader.cs
- PlatformCulture.cs
- Parsers.cs
- TraversalRequest.cs
- AutoGeneratedField.cs
- WebServiceTypeData.cs
- SchemaMapping.cs
- UInt32.cs
- PrintControllerWithStatusDialog.cs
- WpfKnownMemberInvoker.cs
- ReadContentAsBinaryHelper.cs
- SvcFileManager.cs
- TimeZone.cs
- ProfessionalColors.cs
- ValidationResult.cs
- StatusBarAutomationPeer.cs
- X500Name.cs
- SQLResource.cs
- InlinedAggregationOperator.cs
- BlurEffect.cs
- BuildProviderCollection.cs
- AdRotator.cs
- DataReaderContainer.cs
- TranslateTransform3D.cs
- SyndicationSerializer.cs
- AssertUtility.cs
- ImageInfo.cs
- Vector.cs
- ApplicationProxyInternal.cs
- CodeAttachEventStatement.cs
- FlowDocumentScrollViewer.cs
- DataServiceCollectionOfT.cs
- CachedResourceDictionaryExtension.cs
- NegationPusher.cs
- Hash.cs
- QueryOutputWriter.cs
- DataGridViewCheckBoxCell.cs
- SendSecurityHeaderElementContainer.cs
- ObjectDataSourceStatusEventArgs.cs
- WorkflowItemsPresenter.cs
- UnsafeMethods.cs
- TypeTypeConverter.cs
- COM2ExtendedTypeConverter.cs
- AnnouncementInnerClientCD1.cs
- XsltContext.cs
- formatter.cs
- CollectionAdapters.cs
- Parser.cs
- WindowsFormsLinkLabel.cs
- ConfigurationValidatorAttribute.cs
- StrongBox.cs
- EqualityComparer.cs
- ModuleConfigurationInfo.cs
- SHA256Managed.cs
- Journaling.cs
- PropertyMappingExceptionEventArgs.cs
- CalendarDesigner.cs
- WebPartVerbCollection.cs
- StoragePropertyMapping.cs
- CodeTypeMember.cs
- CodeRegionDirective.cs
- ProcessManager.cs
- UrlPath.cs
- IsolatedStorageSecurityState.cs
- MetadataPropertyAttribute.cs
- SecurityRequiresReviewAttribute.cs
- NetPipeSection.cs
- AsynchronousChannel.cs
- ReferenceConverter.cs