共用方式為


DomainRelationshipAttribute Class

Definition

Attribute class used to mark the domain relationships (optional).

public ref class DomainRelationshipAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class DomainRelationshipAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type DomainRelationshipAttribute = class
    inherit Attribute
Public NotInheritable Class DomainRelationshipAttribute
Inherits Attribute
Inheritance
DomainRelationshipAttribute
Attributes

Constructors

DomainRelationshipAttribute()

Initializes a new instance of DomainRelationshipAttribute class.

Properties

AllowsDuplicates

Gets or sets whether domain relationship allows creating multiple instances between the same pair of elements.

IsEmbedding

Gets and sets whether domain object in the source role embeds domain objects in the target role.

Applies to