forgot don't map tag

This commit is contained in:
Alan Moon 2025-12-14 20:23:57 -08:00
parent 3da29f8745
commit 81e01827cb

View File

@ -1,4 +1,6 @@
namespace qtc_api.Models using System.ComponentModel.DataAnnotations.Schema;
namespace qtc_api.Models
{ {
public class User public class User
{ {
@ -22,7 +24,8 @@
public string TextStatus { get; set; } = string.Empty; public string TextStatus { get; set; } = string.Empty;
private string? _tagString; private string? _tagString;
[BackingField(nameof(_tagString))]
[NotMapped]
public string[] Tags public string[] Tags
{ {
get => _tagString?.Split(',') ?? []; get => _tagString?.Split(',') ?? [];