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
- RepeatButton.cs
- RectKeyFrameCollection.cs
- MaskDesignerDialog.cs
- FilteredXmlReader.cs
- SecurityPermission.cs
- ColumnHeaderConverter.cs
- CommonRemoteMemoryBlock.cs
- TableStyle.cs
- ProfileEventArgs.cs
- UnknownMessageReceivedEventArgs.cs
- ExtensibleSyndicationObject.cs
- Journal.cs
- Block.cs
- SqlOuterApplyReducer.cs
- ArcSegment.cs
- IntSecurity.cs
- PathParser.cs
- TreeViewImageIndexConverter.cs
- FormViewPageEventArgs.cs
- Char.cs
- OuterGlowBitmapEffect.cs
- MetadataArtifactLoaderFile.cs
- InputLanguageSource.cs
- ConfigurationLocation.cs
- TextTabProperties.cs
- WebPartMenu.cs
- StorageEntityContainerMapping.cs
- WebPartTransformerAttribute.cs
- NativeMethodsCLR.cs
- SafeUserTokenHandle.cs
- PolicyException.cs
- MetadataItemCollectionFactory.cs
- EventHandlerList.cs
- DesignTimeTemplateParser.cs
- VirtualizingPanel.cs
- SecureStringHasher.cs
- ScriptingJsonSerializationSection.cs
- BaseParser.cs
- SQLGuid.cs
- DockAndAnchorLayout.cs
- TemplateControl.cs
- UpdateExpressionVisitor.cs
- ColorBlend.cs
- RawStylusSystemGestureInputReport.cs
- LinearQuaternionKeyFrame.cs
- ListViewTableRow.cs
- PreviewPrintController.cs
- DesignerOptions.cs
- IdleTimeoutMonitor.cs
- TimersDescriptionAttribute.cs
- ComponentCodeDomSerializer.cs
- ConditionalDesigner.cs
- ObjectDataSource.cs
- XmlTextReader.cs
- UrlMappingsModule.cs
- ImmutableCollection.cs
- DragDeltaEventArgs.cs
- SevenBitStream.cs
- Mappings.cs
- FormViewUpdatedEventArgs.cs
- NameValueSectionHandler.cs
- LogFlushAsyncResult.cs
- SafeCryptoHandles.cs
- XmlnsDefinitionAttribute.cs
- XmlToDatasetMap.cs
- LocalizabilityAttribute.cs
- GridViewUpdatedEventArgs.cs
- Pair.cs
- BindingManagerDataErrorEventArgs.cs
- EmulateRecognizeCompletedEventArgs.cs
- StringUtil.cs
- AdCreatedEventArgs.cs
- DataChangedEventManager.cs
- PrintPageEvent.cs
- StyleSheet.cs
- SecurityStandardsManager.cs
- PageCache.cs
- WebResourceAttribute.cs
- InputScopeNameConverter.cs
- XmlDocumentFragment.cs
- _SslSessionsCache.cs
- Object.cs
- AdornerDecorator.cs
- MimeWriter.cs
- ISAPIApplicationHost.cs
- DictionaryKeyPropertyAttribute.cs
- NextPreviousPagerField.cs
- TypeElement.cs
- NonVisualControlAttribute.cs
- ImageClickEventArgs.cs
- GCHandleCookieTable.cs
- Group.cs
- HttpResponseInternalWrapper.cs
- StickyNoteAnnotations.cs
- BigInt.cs
- DbConnectionPool.cs
- ErrorWrapper.cs
- WorkflowPersistenceService.cs
- DefaultIfEmptyQueryOperator.cs
- DataControlFieldHeaderCell.cs