NewLife.Redis icon indicating copy to clipboard operation
NewLife.Redis copied to clipboard

字段数组有默认值的时候获取不到数据

Open ourhouzi opened this issue 1 month ago • 1 comments

版本: 5.6.2024.508 我的实体里面有数组字段且有默认值为空数组的情况 public string[] ProjectIds { get; set; } = []; 获取缓存数据 _icache.Get<List<Model>>(key); 的时候 ProjectIds 数据永远是空数组。 我把默字段默认空数据去掉后就可以获取到数据了

ourhouzi avatar May 23 '24 06:05 ourhouzi