我有EF类,对于每个类,我使用各种DAL功能(get、set、order等)创建了模型(没有来自EF poco类的继承)。地线就在控制器里面。对于模型的单个实例,一切看起来都很好,但是现在我需要绑定来查看数据列表。下面是我如何做到这一点的一个例子。我对MVC并不熟悉,也不确定这是否是最佳实践:public class CustomerWishlistModel static storeDataEntities db = new
public string code { get; set; }}public partial class B public A customExtProperty{ get; set; }现在,我有一个B类型的对象c,我对它执行以下语句(我更新一些属性c.customExtProperty.code = myCutomCode;