Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果未提供图像,我将图像对象分配为零字节:
byte[] image = new byte[0];
但是如何使用实体框架将其保存到数据库中?
既然没有分配图像,为什么不让它为空值呢?只需在数据库中插入新项目并将图像字段保留为空。