【发布时间】:2011-05-21 14:47:15
【问题描述】:
我正在尝试使用 blob 将图像存储在 Firebird 数据库中。在我的课堂上,我将它们声明为 byte[]:
[Column("SMALLIMAGE")]
public Byte[] SmallImage { get; set; }
[Column("MEDIUMIMAGE")]
public Byte[] MediumImage { get; set; }
[Column("BIGIMAGE")]
public Byte[] BigImage { get; set; }
我在 SaveChanges() 中收到 DbUpdateException。如何在 Firebird 中将 Byte[] 映射到 BLOB?
问候,加布里埃尔
【问题讨论】:
标签: mapping entity-framework-4.1 firebird code-first