1
假设我有这样的跟踪异常的实体框架与Asp.net MVC
public void Upload (Picture picture)
try
{
//ps is the entity framework
ps.AddToPictures(picture);
ps.SaveChanges();
return picture.PictureId;
}
catch (Exception e) {
//some codes to bound the exception to the model
}
码我可以如何呈现的例外模型和视图呈现出来?
我会尝试看看它是否正常工作....首先感谢。 – Seen 2010-12-18 06:46:38
@Seen - 没有问题 - 让我们知道你如何继续。 – RPM1984 2010-12-18 23:54:19