PostgreSQL字段为bytea类型时,插入单个实体正常,插入列表时异常 返回

SqlSugar 沟通中
6 327
该叫什么 neo 发布于1个月前
悬赏:0 飞吻

实体类

    public class WatchData

    {

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "Id")]

        public long Id { get; set; }


        public string WatchName { get; set; }


        [SugarColumn(ColumnDataType = "bytea")]

        public byte[] WatchValue { get; set; }

    }

插入单个WatchData实例正常,插入List<WatchData>后,WatchValue 列存储的值为“System.Byte[]”


热忱回答6