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
- SynchronousSendBindingElement.cs
- BufferedStream.cs
- Debug.cs
- RightsManagementEncryptedStream.cs
- TemplateBindingExpression.cs
- SqlNotificationEventArgs.cs
- XmlUrlResolver.cs
- ParallelSeparator.xaml.cs
- OleDbRowUpdatedEvent.cs
- MTConfigUtil.cs
- MenuItemAutomationPeer.cs
- CryptoStream.cs
- TextEditorMouse.cs
- DetailsViewDeleteEventArgs.cs
- PackageRelationship.cs
- RestHandler.cs
- SocketElement.cs
- ColumnWidthChangingEvent.cs
- EntityViewGenerationAttribute.cs
- XmlSchemaGroup.cs
- SemanticResultKey.cs
- TextEditorSpelling.cs
- SqlWebEventProvider.cs
- ConditionalBranch.cs
- SqlDataSource.cs
- PathGradientBrush.cs
- Repeater.cs
- ImageCodecInfoPrivate.cs
- XmlReflectionImporter.cs
- controlskin.cs
- SmtpNegotiateAuthenticationModule.cs
- StringValueSerializer.cs
- VoiceInfo.cs
- FlagPanel.cs
- DbProviderFactoriesConfigurationHandler.cs
- UiaCoreApi.cs
- InstanceKeyCompleteException.cs
- ImagingCache.cs
- AutomationIdentifier.cs
- BaseValidatorDesigner.cs
- StaticSiteMapProvider.cs
- ViewBase.cs
- Set.cs
- SafeLibraryHandle.cs
- DataGridViewRowEventArgs.cs
- Timer.cs
- UnauthorizedWebPart.cs
- LinkLabel.cs
- PropertyHelper.cs
- storepermission.cs
- PasswordTextContainer.cs
- DecimalAnimationUsingKeyFrames.cs
- Drawing.cs
- DataBindEngine.cs
- FollowerQueueCreator.cs
- NonParentingControl.cs
- XsltQilFactory.cs
- DesignerDataTableBase.cs
- Trace.cs
- WebBrowserEvent.cs
- SevenBitStream.cs
- DragDropHelper.cs
- ReaderOutput.cs
- ZipIOBlockManager.cs
- ClientTargetSection.cs
- BackStopAuthenticationModule.cs
- Token.cs
- CustomAssemblyResolver.cs
- VoiceInfo.cs
- UriParserTemplates.cs
- ScrollItemProviderWrapper.cs
- InlineObject.cs
- DeferrableContent.cs
- ToolStripSeparatorRenderEventArgs.cs
- ProtectedConfiguration.cs
- ProviderSettingsCollection.cs
- MultiAsyncResult.cs
- JsonEncodingStreamWrapper.cs
- TimeZoneInfo.cs
- TextFindEngine.cs
- StackOverflowException.cs
- EntityClientCacheKey.cs
- NativeCompoundFileAPIs.cs
- BuildManagerHost.cs
- XPathNodePointer.cs
- EncodingDataItem.cs
- SequenceDesigner.cs
- SqlDataReaderSmi.cs
- InputLanguageSource.cs
- CookieParameter.cs
- EFDataModelProvider.cs
- XmlCountingReader.cs
- BigInt.cs
- MonikerProxyAttribute.cs
- ColorTranslator.cs
- SafeNativeMethods.cs
- CodeSpit.cs
- HeaderedContentControl.cs
- MbpInfo.cs
- DispatcherHooks.cs