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
- SchemaMerger.cs
- FamilyTypeface.cs
- MultiSelector.cs
- StateWorkerRequest.cs
- Error.cs
- RectKeyFrameCollection.cs
- PatternMatchRules.cs
- FileEnumerator.cs
- WindowInteropHelper.cs
- AdPostCacheSubstitution.cs
- UserControlParser.cs
- NonClientArea.cs
- CanExecuteRoutedEventArgs.cs
- DropTarget.cs
- CodeExpressionCollection.cs
- WebPartCollection.cs
- HtmlEncodedRawTextWriter.cs
- RegexWriter.cs
- BitmapCodecInfo.cs
- FutureFactory.cs
- ConnectionString.cs
- LogLogRecord.cs
- RegexCompilationInfo.cs
- SqlNodeAnnotations.cs
- CodeMethodReturnStatement.cs
- CapabilitiesPattern.cs
- HttpCachePolicyWrapper.cs
- SqlInternalConnectionSmi.cs
- ResolveMatches11.cs
- KerberosSecurityTokenAuthenticator.cs
- DictionarySectionHandler.cs
- ComponentDispatcherThread.cs
- BaseCodeDomTreeGenerator.cs
- UserThread.cs
- XmlChildEnumerator.cs
- TimeSpanMinutesConverter.cs
- Button.cs
- CodeParameterDeclarationExpressionCollection.cs
- SiteMapDataSourceDesigner.cs
- Light.cs
- RelOps.cs
- TemplatedControlDesigner.cs
- SmiEventSink_Default.cs
- CompoundFileStorageReference.cs
- CompatibleIComparer.cs
- OdbcConnectionOpen.cs
- EventSetter.cs
- SafeFindHandle.cs
- _HeaderInfoTable.cs
- FontConverter.cs
- RepeaterCommandEventArgs.cs
- CdpEqualityComparer.cs
- ParameterElement.cs
- PathSegmentCollection.cs
- NodeInfo.cs
- EDesignUtil.cs
- XmlSchemaRedefine.cs
- ProfileProvider.cs
- NetworkCredential.cs
- AnnotationComponentManager.cs
- X509KeyIdentifierClauseType.cs
- SyndicationFeedFormatter.cs
- DesignerCommandSet.cs
- FixedPage.cs
- PolyBezierSegment.cs
- PartitionResolver.cs
- ParamArrayAttribute.cs
- XomlDesignerLoader.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ScriptReferenceBase.cs
- _SpnDictionary.cs
- FlowDocumentPage.cs
- XmlSchemaAppInfo.cs
- PathGeometry.cs
- XmlFileEditor.cs
- PropertyGridEditorPart.cs
- ContentPlaceHolder.cs
- SafeProcessHandle.cs
- XsdDuration.cs
- basecomparevalidator.cs
- SizeChangedInfo.cs
- QueryCacheManager.cs
- DataGridViewCellStateChangedEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- hwndwrapper.cs
- NameValueFileSectionHandler.cs
- FontUnit.cs
- JournalEntryStack.cs
- StandardMenuStripVerb.cs
- TransactionBridgeSection.cs
- Reference.cs
- validationstate.cs
- RenderDataDrawingContext.cs
- ConstraintStruct.cs
- DataBoundLiteralControl.cs
- EdmScalarPropertyAttribute.cs
- Separator.cs
- LocalizeDesigner.cs
- DownloadProgressEventArgs.cs
- WindowsGraphicsWrapper.cs