• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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.

Inheritance
System.Object
BaseEntityInfo
UserRelationship
Implements
IHydratable
Inherited Members
BaseEntityInfo.CreatedByUserID
BaseEntityInfo.CreatedOnDate
BaseEntityInfo.LastModifiedByUserID
BaseEntityInfo.LastModifiedOnDate
BaseEntityInfo.CreatedByUser(Int32)
BaseEntityInfo.LastModifiedByUser(Int32)
BaseEntityInfo.FillInternal(IDataReader)
BaseEntityInfo.CloneBaseProperties(BaseEntityInfo, BaseEntityInfo)
Namespace: DotNetNuke.Entities.Users.Social
Assembly: DotNetNuke.dll
Syntax
public class UserRelationship : BaseEntityInfo, IHydratable

Constructors

| Improve this Doc View Source

UserRelationship()

Initializes a new instance of the UserRelationship class.

Declaration
public UserRelationship()

Properties

| Improve this Doc View Source

KeyID

Gets or sets iHydratable.KeyID.

Declaration
public int KeyID { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

RelatedUserId

Gets or sets the UserId of the Related User.

Declaration
public int RelatedUserId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

UserId

Gets or sets userId of the User that owns the relationship.

Declaration
public int UserId { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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 Source

Fill(IDataReader)

Fill the object with data from database.

Declaration
public void Fill(IDataReader dr)
Parameters
Type Name Description
IDataReader dr

the data reader.

Implements

IHydratable

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS