【发布时间】:2017-11-08 17:01:43
【问题描述】:
我有一个这样的模型:
public class Customer
{
public string Name { get; set; }
public string Address { get; set; }
public List<Contacts> ContactList { get; set; }
}
public class Contacts
{
public string Name { get; set; }
public string Phone { get; set; }
}
现在在剃刀视图中,如果我们将模型称为
@model MvcApp.Models.Customer
如何使用 PagedList 或其他东西对 Customer 模型内部的 ContactList 执行分页操作。
有什么帮助吗?
提前致谢
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-4 razor pagedlist