0
鑑於以下車型ASP.NET MVC3 - ICollection的編輯
public class Person
{
public int Id { get; set; }
public string FullName { get; set; }
}
public class Trip
{
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<Person> Persons { get; set; }
}
我想有什麼是最好的方式了一些信息,以實現以下目標:
當我編輯了一趟,我希望能夠添加/刪除人員。
爲什麼不使用列表? –