ASP.NET MVC中,为何Nullable DateTime参数在操作调用时无法正确绑定?

2026-04-30 14:303阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计382个文字,预计阅读时间需要2分钟。

ASP.NET MVC中,为何Nullable DateTime参数在操作调用时无法正确绑定?

我有以下功能签名:public JsonResult PopulateGrid(int page, Guid? accountId, Guid? systemUserId, Guid? branchId, DateTime? fromDate, DateTime? toDate, HomeVisitType? homeVisitType) 每个参数都绑定得很好,除了toDate。

阅读全文

本文共计382个文字,预计阅读时间需要2分钟。

ASP.NET MVC中,为何Nullable DateTime参数在操作调用时无法正确绑定?

我有以下功能签名:public JsonResult PopulateGrid(int page, Guid? accountId, Guid? systemUserId, Guid? branchId, DateTime? fromDate, DateTime? toDate, HomeVisitType? homeVisitType) 每个参数都绑定得很好,除了toDate。

阅读全文