原文发布时间为:2011-04-01 -- 来源于本人的百度文章 [由搬家工具导入] Linq join query displayed in MVC view Instead of returning an IEnumerable of anonymous types, you could create a class for the join result and then create a model for it as normal: var inactive = from usrs i…
起源 最初,这个问题是知识星球内的一个网友提出的,如何在FineUIMvc中展现复杂的列数据? 在FineUIPro中,我们都知道有一个 TemplateField 模板列可以使用,我们只需要在后台定义一个 C# 方法,就可以返回任意想要的数据. 可是在FineUIMvc中没有这么个列类型,那又如何展示复杂数据呢? 解决办法 先来看下数据模型: public class Student { [Key] public int Id { get; set; } [Required] [Display…