Open
Conversation
lucasoliveira08
requested changes
Mar 26, 2024
| public string Race { get; set; } | ||
| public string Color { get; set; } | ||
| public string Description { get; set; } | ||
| public Guid TutorId { get; set; } |
Collaborator
There was a problem hiding this comment.
Faltou a propriedade de navegação, por isso ele não mapeou na sua migration.
public Tutor Tutor { get; set; }
| Race = race; | ||
| Color = color; | ||
| Description = description; | ||
| TutorId = tutorid; |
Collaborator
There was a problem hiding this comment.
Alterar para TutorID = tutorId aqui e no parâmetro da função - respeitar o padrão.
|
|
||
| [Required] | ||
| public string Neighborhood { get; set; } | ||
| public ICollection<CreatePetRequest>? createPetRequests { get; set; } |
Collaborator
There was a problem hiding this comment.
Você não passa o CreatePetRequest aqui, um tutor é criado indiferentemente de ter um pet, certo?
| public string Color { get; set; } | ||
|
|
||
| public string Description { get; set; } | ||
|
|
Collaborator
There was a problem hiding this comment.
Faltou a propriedade do tutorId - quando se cria um pet, ele não precisa obrigatoriamente ter um tutor?
| public string Complement { get; set; } | ||
| public string Neighborhood { get; set; } | ||
|
|
||
| public ICollection<Pet> Pets { get; set; } |
Collaborator
There was a problem hiding this comment.
Faltou o "?" após ICollection<>? - pois é opcional um tutor ter um pet.
lucasoliveira08
approved these changes
Apr 1, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.