This repository was archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Comment
Michał B edited this page Mar 21, 2018
·
4 revisions
- 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.
| 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. |
| 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. |