小编Ani*_*fia的帖子

ASP.NET MVC在一个视图中有多个模型

我有以下型号患者类:

public class Patient
{
    public int PatientID { get; set; }

    public virtual Salutation salutation { get; set; }
    public int SalutationID { get; set; }
    public string Surname { get; set; }
    public string Firstname { get; set; }
    [Display(Name = "Date of Birth")]
    [DisplayFormat(DataFormatString="{0:d}", ApplyFormatInEditMode=true)]
    public DateTime DOB { get; set; }
    public string RegNo { get; set; }
    public DateTime RegDate { get; set; }
    public string Occupation { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

VatalSigns类

public class …
Run Code Online (Sandbox Code Playgroud)

c# model-view-controller asp.net-mvc

1
推荐指数
1
解决办法
99
查看次数

标签 统计

asp.net-mvc ×1

c# ×1

model-view-controller ×1