0
更新帳戶角色我有什麼型號如何使用checklistbox在MVC3
public class Account
{
[Key]
public int AccountID { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string FullName { get; set; }
}
而且
public class Role
{
[Key]
public int RoleID { get; set; }
public string RoleKey { get; set; }
public string RoleName { get; set; }
}
而且
public class AccountRole
{
[Key]
public int ID { get; set; }
public int AccountID { get; set; }
public string Role { get; set; }
}
我想用一個視圖更新帳戶和列出角色列表複選框。當我檢入複選框,然後插入到AccountRole中的角色。
請告訴我如何創建我的視圖。