Class UserRelationship
The UserRelationship class defines the membership of the relationship. The user initiating the relationship is UserId. The target of the relationship is RelatedUserId. Status tracks relationship status as Initiated, Approved, Rejected etc.
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Users.Social
Assembly: DotNetNuke.dll
Syntax
public class UserRelationship : BaseEntityInfo, IHydratable
Constructors
| Improve this Doc View SourceUserRelationship()
Initializes a new instance of the UserRelationship class.
Declaration
public UserRelationship()
Properties
| Improve this Doc View SourceKeyID
Gets or sets iHydratable.KeyID.
Declaration
public int KeyID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RelatedUserId
Gets or sets the UserId of the Related User.
Declaration
public int RelatedUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RelationshipId
Gets or sets the ID of the Relationship to which this Relation belongs to (e.g. Friend List or Coworkers).
Declaration
public int RelationshipId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Status
Gets or sets the Status of the Relationship (e.g. Initiated, Accepted, Rejected).
Declaration
public RelationshipStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| RelationshipStatus |
UserId
Gets or sets userId of the User that owns the relationship.
Declaration
public int UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
UserRelationshipId
Gets or sets userRelationshipId - The primary key.
Declaration
public int UserRelationshipId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceFill(IDataReader)
Fill the object with data from database.
Declaration
public void Fill(IDataReader dr)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataReader | dr | the data reader. |