是否有可能转换HttpPostedFileBase to HttpPostedFile,我试图搜索,所以问题,我只能找到正好相反的情况HttpPostedFile到HttpPostedFileBase。试读:
他说:“在某些情况下,我们需要将HttpPostedFileBase转换为HttpPostedFile,我们可以使用HttpPostedFileWrapper实现这一点。”请不要告诉我要使用HttpPostedFileBase,因为我使用的是DevExpress框架UploadedFile类,它只接受构造函数中的HttpPos
当我启动我的MVC应用程序时,这个错误来自upp "EntityType 'HttpPostedFile‘没有定义密钥“{ public int ID { get; set; }
public HttpPostedFilereturn PartialView("_Advert");然后,在db.Database.CreateIfNotExists()