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
- BigInt.cs
- Slider.cs
- ByteStorage.cs
- Light.cs
- AQNBuilder.cs
- IteratorFilter.cs
- EmptyCollection.cs
- ProgressBar.cs
- SortQuery.cs
- ConvertTextFrag.cs
- Exceptions.cs
- MarkupCompiler.cs
- SliderAutomationPeer.cs
- InvokePattern.cs
- DiagnosticTraceRecords.cs
- controlskin.cs
- ScriptModule.cs
- InkCanvasAutomationPeer.cs
- SourceElementsCollection.cs
- SID.cs
- PersonalizationDictionary.cs
- CapabilitiesPattern.cs
- TableHeaderCell.cs
- RuntimeIdentifierPropertyAttribute.cs
- SchemaCollectionCompiler.cs
- TypeProvider.cs
- UIElementCollection.cs
- UpdateRecord.cs
- RightsManagementInformation.cs
- Margins.cs
- MetadataUtil.cs
- TextCompositionEventArgs.cs
- HtmlPhoneCallAdapter.cs
- LassoSelectionBehavior.cs
- KeySplineConverter.cs
- CharacterBufferReference.cs
- ArithmeticException.cs
- BindingContext.cs
- SHA256.cs
- DerivedKeySecurityTokenStub.cs
- DomNameTable.cs
- DeclarativeCatalogPart.cs
- ScrollViewer.cs
- FacetValues.cs
- BaseValidator.cs
- XslCompiledTransform.cs
- ClientTargetSection.cs
- SignatureToken.cs
- FrameworkElement.cs
- DomNameTable.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ProcessManager.cs
- PropertyInfoSet.cs
- EdmScalarPropertyAttribute.cs
- XPathAxisIterator.cs
- PreservationFileReader.cs
- DataGridRowHeaderAutomationPeer.cs
- TypeBuilderInstantiation.cs
- CategoryAttribute.cs
- PartitionResolver.cs
- XmlQueryType.cs
- NoPersistHandle.cs
- CompilerTypeWithParams.cs
- WebResourceAttribute.cs
- webeventbuffer.cs
- TextContainerHelper.cs
- MissingSatelliteAssemblyException.cs
- WinEventHandler.cs
- LockRecoveryTask.cs
- CollectionContainer.cs
- KeyEvent.cs
- BindingMAnagerBase.cs
- XmlSchemaIdentityConstraint.cs
- HierarchicalDataTemplate.cs
- SystemTcpStatistics.cs
- SignatureGenerator.cs
- SinglePageViewer.cs
- EncodingNLS.cs
- DataGridRowClipboardEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- DataRowView.cs
- SchemaObjectWriter.cs
- IDReferencePropertyAttribute.cs
- FrameSecurityDescriptor.cs
- WebBrowser.cs
- ParseHttpDate.cs
- BufferedGraphicsManager.cs
- DecimalAnimation.cs
- XmlSecureResolver.cs
- PartialTrustVisibleAssembliesSection.cs
- MasterPageParser.cs
- ColorConvertedBitmap.cs
- SignatureResourcePool.cs
- HttpValueCollection.cs
- FlowLayoutPanelDesigner.cs
- ListBox.cs
- XpsTokenContext.cs
- WebPartsPersonalization.cs
- ComPlusContractBehavior.cs
- DataGridViewRowCollection.cs