Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------
//
// 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
- ComPlusDiagnosticTraceSchemas.cs
- XmlEnumAttribute.cs
- PropVariant.cs
- ReadOnlyTernaryTree.cs
- BuildResultCache.cs
- SiteMapHierarchicalDataSourceView.cs
- ColumnCollection.cs
- ServiceContractViewControl.cs
- XmlMtomReader.cs
- InstanceDescriptor.cs
- TableLayoutStyle.cs
- QueueProcessor.cs
- StaticDataManager.cs
- ObjectListComponentEditor.cs
- WebResponse.cs
- WorkflowItemsPresenter.cs
- InfoCardClaimCollection.cs
- PortCache.cs
- PublisherMembershipCondition.cs
- EventTrigger.cs
- KoreanCalendar.cs
- _NegoStream.cs
- MimeMapping.cs
- SQLInt16Storage.cs
- RichTextBoxConstants.cs
- CompensationDesigner.cs
- LinearKeyFrames.cs
- NumberSubstitution.cs
- ConcurrencyBehavior.cs
- UserControl.cs
- XsdCachingReader.cs
- SmiGettersStream.cs
- ObjRef.cs
- DynamicRendererThreadManager.cs
- UInt16Storage.cs
- DbProviderFactories.cs
- CryptoHelper.cs
- GeneralTransform3DCollection.cs
- LoginViewDesigner.cs
- SingleBodyParameterMessageFormatter.cs
- DataBoundControlAdapter.cs
- PermissionRequestEvidence.cs
- OuterGlowBitmapEffect.cs
- ComponentRenameEvent.cs
- SimpleParser.cs
- CountdownEvent.cs
- ObservableDictionary.cs
- DatatypeImplementation.cs
- FrameworkRichTextComposition.cs
- XmlSchemaElement.cs
- MessageFormatterConverter.cs
- CodeSnippetTypeMember.cs
- Propagator.JoinPropagator.cs
- XmlArrayItemAttribute.cs
- NotCondition.cs
- WebServiceHandlerFactory.cs
- PreservationFileReader.cs
- ChannelSinkStacks.cs
- DefaultEvaluationContext.cs
- SqlInternalConnection.cs
- EntityContainerEmitter.cs
- Utils.cs
- returneventsaver.cs
- ReadOnlyNameValueCollection.cs
- AssemblyCacheEntry.cs
- CurrentChangingEventManager.cs
- ADMembershipUser.cs
- WindowsEditBoxRange.cs
- CharConverter.cs
- ArgumentElement.cs
- MetabaseSettings.cs
- AvTrace.cs
- PointValueSerializer.cs
- DebuggerAttributes.cs
- ReadOnlyMetadataCollection.cs
- DetailsViewDeleteEventArgs.cs
- SerializationEventsCache.cs
- NameHandler.cs
- RegexInterpreter.cs
- BitmapSizeOptions.cs
- StateManagedCollection.cs
- XPathSelfQuery.cs
- SequenceDesigner.cs
- OdbcReferenceCollection.cs
- DataControlFieldCollection.cs
- DashStyle.cs
- ConstructorNeedsTagAttribute.cs
- xmlsaver.cs
- TabOrder.cs
- WmlLinkAdapter.cs
- BitStack.cs
- ClrProviderManifest.cs
- BmpBitmapDecoder.cs
- ProcessExitedException.cs
- TextChangedEventArgs.cs
- SqlGenericUtil.cs
- CompilerGeneratedAttribute.cs
- ObjectHelper.cs
- SizeChangedInfo.cs
- BrowserDefinitionCollection.cs