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

Class Question

QuestionService/Models/Question.cs:5–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace QuestionService.Models;
4
5public class Question
6{
7 [MaxLength(36)]
8 public string Id { get; set; } = Guid.NewGuid().ToString();
9
10 [MaxLength(300)]
11 public required string Title { get; set; }
12
13 [MaxLength(5000)]
14 public required string Content { get; set; }
15
16 [MaxLength(36)]
17 public required string AskerId { get; set; }
18
19 public DateTime CreatedAt { get; init; } = DateTime.UtcNow;
20 public DateTime? UpdatedAt { get; set; }
21 public int ViewCount { get; set; }
22 public List<string> TagSlugs { get; set; } = [];
23 public bool HasAcceptedAnswer { get; set; }
24 public int Votes { get; set; }
25
26 public int AnswerCount { get; set; }
27
28 // navigation properties
29 public List<Answer> Answers { get; set; } = [];
30}

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…