mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-27 20:26:37 +08:00
模板重新生成可空类型
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Yi.Framework.Common.Models
|
||||
Total = total;
|
||||
}
|
||||
public int Total { get; set; }
|
||||
public T Data { get; set; }
|
||||
public T Data { get; set; } = default(T)!;
|
||||
}
|
||||
|
||||
public class PageModel : PageModel<object>
|
||||
|
||||
Reference in New Issue
Block a user