实体类   字段带上[SugarColumn(IsJson = true)]

/// <summary>
///期
/// </summary>
[SugarColumn(IsJson = true, ColumnDescription = "期")]
public string[]? Period { get; set; }

查询出库时字段也必须带着 [SugarColumn(IsJson = true)] 

[SugarColumn(IsJson = true)]
public string[]?  Period { get; set; }

posted on 2024-08-29 14:34  小石头的一天  阅读(79)  评论(0编辑  收藏  举报