Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

Comment

Michał B edited this page Mar 21, 2018 · 4 revisions

Description

  • This class describes a comment to the project, created by the user.
  • This class is responsible for modeling the table representation in the database.
  • This class contains methods responsible for acting on it.
  • This class inherits from the Entity class.

Properties

Name Type Access Description
CommentText string public The content of the comment.
CommenterId int public User ID for 'one to many' relationship in Entity Framework Core.
ProjectId int public Project ID for 'one to many' relationship in Entity Framework Core.
Commenter User public Virtual user variable for 'one to many' relationship in Entity Framework Core.
Project Project public Virtual project variable for 'one to many' relationship in Entity Framework Core.

Methods

Name Type Access Description
Comment - public Constructor initializing all object fields, including those related to Entity Framework Core.
SetCommentText void private A method for validating and setting the comment content. Throws an ForbiddenValueException if the context of the comment does not pass the validation.

General


Technical documentation

  1. Models
Clone this wiki locally