我想从上传的文件中获取值(值是图像)并通过 EntityFramework 将其插入数据库。
int a = Convert.ToInt32(Request.QueryString["reqid"].ToString());
MasterPackEntities context = new MasterPackEntities();
news c = context.news.First(s => s.id == a);
c.title = tbtitle.Text;
c.details = Editor1.Content;
c.pic = ??????;
context.SaveChanges();