如何使用Code First迁移将pdf文件添加到我现有的数据库中?

时间:2018-06-25 11:48:34

标签: c# asp.net-mvc pdf file-upload ef-code-first

This is my rent model in which I have declared byte File in it

This is the database of my rent table in which File needs to be populated with pdf file path

This is my viewModel as I'm using code first for uploading fie

This is my post method

请告诉我在这里编码什么,以便仅直接获取数据库表的文件路径,并告诉我视图的外观。请帮助我,自2天以来,我一直在解决此问题。

0 个答案:

没有答案