MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / Answer

Class Answer

QuestionService/Models/Answer.cs:6–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace QuestionService.Models;
5
6public class Answer
7{
8 [MaxLength(36)]
9 public string Id { get; set; } = Guid.NewGuid().ToString();
10 [MaxLength(5000)]
11 public required string Content { get; set; }
12 [MaxLength(36)]
13 public required string UserId { get; set; }
14 public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
15 public DateTime? UpdatedAt { get; set; }
16 public bool Accepted { get; set; }
17 public int Votes { get; set; }
18
19 // nav properties
20 [MaxLength(36)]
21 public required string QuestionId { get; set; }
22 [JsonIgnore]
23 public Question Question { get; set; } = null!;
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…