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
- RouteItem.cs
- BaseCAMarshaler.cs
- DataKey.cs
- SystemInformation.cs
- ToggleButtonAutomationPeer.cs
- TextServicesProperty.cs
- PropertyGridEditorPart.cs
- SqlDataSource.cs
- VectorAnimationBase.cs
- RandomNumberGenerator.cs
- autovalidator.cs
- IItemProperties.cs
- QilFactory.cs
- XPathSelectionIterator.cs
- QilFunction.cs
- LabelDesigner.cs
- AppendHelper.cs
- ColorConverter.cs
- XmlAttributeProperties.cs
- MemoryMappedViewAccessor.cs
- MetafileHeader.cs
- UDPClient.cs
- GeneralTransformGroup.cs
- KoreanLunisolarCalendar.cs
- QilUnary.cs
- Win32.cs
- SecurityContextCookieSerializer.cs
- ContainerSelectorBehavior.cs
- WebEncodingValidator.cs
- Point3DKeyFrameCollection.cs
- ScriptControl.cs
- KeyValueConfigurationElement.cs
- OleCmdHelper.cs
- HttpApplicationFactory.cs
- OleDbPropertySetGuid.cs
- TextTreePropertyUndoUnit.cs
- PrintDialog.cs
- DateTimeHelper.cs
- FocusManager.cs
- Size.cs
- login.cs
- XmlAttributeOverrides.cs
- VirtualPathUtility.cs
- TransformGroup.cs
- WebPartHeaderCloseVerb.cs
- DBBindings.cs
- CalendarDay.cs
- DrawingCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- DynamicMethod.cs
- EditorZoneDesigner.cs
- ContractNamespaceAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- HashCodeCombiner.cs
- SqlConnectionStringBuilder.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DeploymentSectionCache.cs
- JapaneseLunisolarCalendar.cs
- ExpressionBuilderCollection.cs
- LiteralSubsegment.cs
- FontDriver.cs
- TransformerInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- SafeSecurityHandles.cs
- RegistryPermission.cs
- Quaternion.cs
- StatusBarDrawItemEvent.cs
- ButtonAutomationPeer.cs
- HttpClientCertificate.cs
- MessageQueueConverter.cs
- X500Name.cs
- AttributeCallbackBuilder.cs
- FileCodeGroup.cs
- RoutingTable.cs
- CustomGrammar.cs
- ImageField.cs
- InfiniteTimeSpanConverter.cs
- TextDecorations.cs
- StringFreezingAttribute.cs
- Matrix.cs
- DesigntimeLicenseContextSerializer.cs
- ColumnWidthChangingEvent.cs
- BrowserCapabilitiesCompiler.cs
- XmlTextReader.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- FieldDescriptor.cs
- Parameter.cs
- DateTimeOffsetStorage.cs
- AnimationStorage.cs
- DataContract.cs
- TerminatorSinks.cs
- OptimalTextSource.cs
- ProcessHostMapPath.cs
- OutputScopeManager.cs
- ControlTemplate.cs
- SafeNativeMethods.cs
- InputScope.cs
- _NegotiateClient.cs
- HebrewNumber.cs
- PathFigureCollectionConverter.cs