Added n -> m relation support

This commit is contained in:
2025-01-17 16:58:36 +01:00
parent e9f686cf19
commit 4f68fc578f
16 changed files with 195 additions and 79 deletions

View File

@@ -11,7 +11,7 @@ public class Post {
[MaxLength(255)]
public required string Caption { get; set; }
public required string Content { get; set; }
public required string? Content { get; set; }
[ForeignKey("author")]
public virtual required User Author { get; set; }