Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Base Model and DTO #115

Open
25 tasks
oguzhanaksoy opened this issue Apr 30, 2021 · 1 comment
Open
25 tasks

Feature: Base Model and DTO #115

oguzhanaksoy opened this issue Apr 30, 2021 · 1 comment

Comments

@oguzhanaksoy
Copy link

oguzhanaksoy commented Apr 30, 2021

It will contain just common properties such as Created.
Each created model will inherit from BaseModel
Each created dto will inherit from BaseDTO

Models

  • Flag
  • Joke
  • LikedJoke
  • LikedTags
  • Reason
  • SavedJoke
  • Tag
  • User

DTOs

  • FlagCreateDto
  • FlagReplyDto
  • JokeAuthorDto
  • JokeCreateDto
  • LikedJokeCreateDto
  • LikedJokeReplyDto
  • LikeTagsCreateDto
  • ReasonCreateDto
  • ReasonReplyDto
  • SavedJokeCreateDto
  • SavedJokeReplyDto
  • TagCreateDto
  • TagReplyDto
  • UserLoginDTO
  • UserRegisterDTO
  • UserReplyDTO
  • UserUpdateDTO
@HellHunterMax
Copy link
Collaborator

Have you used this before ?
could you give examples how this works and why its good ? maybe some documentation or blogpost?

some reasons for not using imo:

  • Reason should not have a CreatedDate see Model Architecture
  • The only thing in common might be the Id, and even that is different for models (User uses string and the rest int.)
  • Even all the Dto's could use different fields and might not have anything in common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants