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
- SqlDataSourceView.cs
- ReferenceConverter.cs
- DebuggerAttributes.cs
- DataGridAutoFormatDialog.cs
- ConfigXmlSignificantWhitespace.cs
- HttpPostProtocolImporter.cs
- SubMenuStyleCollection.cs
- AvTraceDetails.cs
- MetroSerializationManager.cs
- TextFormatter.cs
- BitmapEffectGroup.cs
- PackageProperties.cs
- SoapCommonClasses.cs
- StylusPointPropertyInfo.cs
- BuildDependencySet.cs
- AutomationPropertyInfo.cs
- TextTreeFixupNode.cs
- _UncName.cs
- ImageMetadata.cs
- MessageVersion.cs
- PointLightBase.cs
- PenCursorManager.cs
- XmlTextWriter.cs
- ModelService.cs
- ScriptManagerProxy.cs
- FixedFindEngine.cs
- FileReservationCollection.cs
- Variant.cs
- ConnectionManager.cs
- DataRelationCollection.cs
- DataServiceSaveChangesEventArgs.cs
- HtmlElementCollection.cs
- ParenthesizePropertyNameAttribute.cs
- SafePointer.cs
- IdSpace.cs
- SoapSchemaImporter.cs
- ReferencedCollectionType.cs
- SmtpClient.cs
- ActionMessageFilter.cs
- PixelFormatConverter.cs
- DataGridViewBand.cs
- Environment.cs
- XmlUnspecifiedAttribute.cs
- DataRowExtensions.cs
- _emptywebproxy.cs
- DrawingCollection.cs
- StringOutput.cs
- Html32TextWriter.cs
- VisualStateManager.cs
- SurrogateEncoder.cs
- Font.cs
- EmptyEnumerator.cs
- ProcessHostFactoryHelper.cs
- DesignerView.xaml.cs
- AutoResetEvent.cs
- SaveWorkflowCommand.cs
- relpropertyhelper.cs
- HwndStylusInputProvider.cs
- LocalizationParserHooks.cs
- OletxCommittableTransaction.cs
- DeviceSpecificChoice.cs
- Missing.cs
- WebRequestModulesSection.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Operand.cs
- EntityConnection.cs
- WebUtil.cs
- InvalidCardException.cs
- StrongNameMembershipCondition.cs
- HttpTransportElement.cs
- WebPartEditVerb.cs
- DataObjectFieldAttribute.cs
- LicFileLicenseProvider.cs
- MimeReturn.cs
- LookupNode.cs
- XmlEntity.cs
- WebServiceResponse.cs
- ConnectionInterfaceCollection.cs
- EntityDesignerDataSourceView.cs
- WorkflowMarkupSerializationProvider.cs
- NameSpaceExtractor.cs
- ValidationResult.cs
- Setter.cs
- Point3D.cs
- SimpleApplicationHost.cs
- PageOutputColor.cs
- ImageInfo.cs
- UIElement3D.cs
- StyleXamlParser.cs
- UnwrappedTypesXmlSerializerManager.cs
- StylusButtonCollection.cs
- DataReceivedEventArgs.cs
- TypeConverterHelper.cs
- PenThreadPool.cs
- BufferedGraphicsContext.cs
- BamlRecordHelper.cs
- EditorPart.cs
- webproxy.cs
- ClientTargetSection.cs
- UmAlQuraCalendar.cs