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
- EditableTreeList.cs
- LightweightEntityWrapper.cs
- TemplateKeyConverter.cs
- DataGridViewLayoutData.cs
- XPathScanner.cs
- CompilerCollection.cs
- PackageStore.cs
- SqlMethodTransformer.cs
- PointAnimationBase.cs
- GridViewColumnHeader.cs
- _OverlappedAsyncResult.cs
- CompositeClientFormatter.cs
- JpegBitmapEncoder.cs
- RecognizeCompletedEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- BehaviorService.cs
- Win32Native.cs
- TripleDES.cs
- httpserverutility.cs
- Int32RectConverter.cs
- DesignerRegion.cs
- StrokeNodeEnumerator.cs
- Util.cs
- TypeSystem.cs
- FindCriteria.cs
- XmlSchemaSimpleTypeUnion.cs
- PackagePartCollection.cs
- DataGridViewLinkCell.cs
- _ProxyRegBlob.cs
- BitmapInitialize.cs
- ButtonBaseAdapter.cs
- ControlAdapter.cs
- SlipBehavior.cs
- TypefaceMetricsCache.cs
- IisTraceListener.cs
- RelationshipNavigation.cs
- Byte.cs
- InputElement.cs
- ScriptResourceDefinition.cs
- ByteRangeDownloader.cs
- RegexCompilationInfo.cs
- DataGridCommandEventArgs.cs
- JsonReader.cs
- MarginsConverter.cs
- ResizeGrip.cs
- DependencyPropertyDescriptor.cs
- ComponentChangedEvent.cs
- WebHttpSecurityModeHelper.cs
- Double.cs
- InternalException.cs
- DataSourceDescriptorCollection.cs
- GroupQuery.cs
- TextStore.cs
- StateWorkerRequest.cs
- Wildcard.cs
- TypeForwardedToAttribute.cs
- StylusPointPropertyId.cs
- wgx_render.cs
- entityreference_tresulttype.cs
- InfoCardProofToken.cs
- MetadataHelper.cs
- BitmapVisualManager.cs
- XamlStream.cs
- Vector3D.cs
- SegmentInfo.cs
- RadialGradientBrush.cs
- ObservableCollectionDefaultValueFactory.cs
- HtmlInputPassword.cs
- XmlMessageFormatter.cs
- StyleModeStack.cs
- ListenerSessionConnection.cs
- MimeTypePropertyAttribute.cs
- HtmlInputReset.cs
- DialogResultConverter.cs
- OleDbEnumerator.cs
- LambdaCompiler.ControlFlow.cs
- ChannelListenerBase.cs
- SetStateDesigner.cs
- ViewGenResults.cs
- CompositeActivityTypeDescriptorProvider.cs
- TerminatorSinks.cs
- CriticalExceptions.cs
- ViewStateModeByIdAttribute.cs
- FaultConverter.cs
- EncryptedXml.cs
- BamlRecordReader.cs
- TaskFileService.cs
- DoubleLinkList.cs
- AddInAttribute.cs
- CrossAppDomainChannel.cs
- TabletCollection.cs
- UrlAuthorizationModule.cs
- UserControlBuildProvider.cs
- AttributeSetAction.cs
- XmlSchemaComplexContentRestriction.cs
- Attributes.cs
- ColorAnimation.cs
- FactoryId.cs
- IdentitySection.cs
- ToolboxBitmapAttribute.cs