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
- ClockController.cs
- WebPartMenuStyle.cs
- MULTI_QI.cs
- ListViewSortEventArgs.cs
- CngAlgorithmGroup.cs
- HtmlInputPassword.cs
- DataGridTextBoxColumn.cs
- DocumentStream.cs
- DirtyTextRange.cs
- IndicShape.cs
- CallbackHandler.cs
- RealProxy.cs
- Win32.cs
- ApplicationDirectoryMembershipCondition.cs
- DispatchWrapper.cs
- TypeKeyValue.cs
- PersonalizationEntry.cs
- CreateUserWizardStep.cs
- TableStyle.cs
- DragEvent.cs
- BufferedGraphicsContext.cs
- CurrentChangedEventManager.cs
- ContextStaticAttribute.cs
- DrawingAttributesDefaultValueFactory.cs
- XmlnsCache.cs
- Object.cs
- MethodRental.cs
- FormViewCommandEventArgs.cs
- ThrowHelper.cs
- UriTemplateTableMatchCandidate.cs
- DesignerWidgets.cs
- AnnotationMap.cs
- Enum.cs
- PenThread.cs
- ImportContext.cs
- HandoffBehavior.cs
- DataGridViewComboBoxEditingControl.cs
- HtmlHistory.cs
- DSASignatureDeformatter.cs
- CompositeDataBoundControl.cs
- HandleExceptionArgs.cs
- PeerNameRegistration.cs
- CrossContextChannel.cs
- NamespaceMapping.cs
- List.cs
- SimpleMailWebEventProvider.cs
- StoragePropertyMapping.cs
- ToolStripComboBox.cs
- CodeIndexerExpression.cs
- ActivityDelegate.cs
- FilterableAttribute.cs
- EntityContainerEmitter.cs
- QueryParameter.cs
- InternalDispatchObject.cs
- MsmqHostedTransportConfiguration.cs
- RelatedPropertyManager.cs
- ListViewItemSelectionChangedEvent.cs
- oledbmetadatacollectionnames.cs
- RegisteredHiddenField.cs
- CodeTypeParameter.cs
- FixedPageProcessor.cs
- FrameworkContentElement.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- WebBrowserEvent.cs
- DelegateSerializationHolder.cs
- SQLInt16.cs
- DataGridHeaderBorder.cs
- Size3D.cs
- SystemDropShadowChrome.cs
- EntityContainerEmitter.cs
- XmlSerializer.cs
- PerfCounters.cs
- SetStoryboardSpeedRatio.cs
- MenuItemAutomationPeer.cs
- EmptyEnumerable.cs
- AppSettingsReader.cs
- BitVector32.cs
- Label.cs
- FieldCollectionEditor.cs
- MemoryStream.cs
- ChineseLunisolarCalendar.cs
- ExpressionNormalizer.cs
- NullableBoolConverter.cs
- IndexedString.cs
- StrongNameIdentityPermission.cs
- WMICapabilities.cs
- BezierSegment.cs
- SetterTriggerConditionValueConverter.cs
- ScriptComponentDescriptor.cs
- WebPartEditorOkVerb.cs
- ExceptionNotification.cs
- CommandEventArgs.cs
- SqlPersonalizationProvider.cs
- PersistChildrenAttribute.cs
- RotateTransform3D.cs
- ExchangeUtilities.cs
- AssemblyAttributesGoHere.cs
- Win32.cs
- OdbcParameterCollection.cs
- SoapInteropTypes.cs