我的代码优先模型如下所示:
public class Document
{
[Key]
public int DocumentId {get;set;}
[Required]
public byte[] Blob {get; set;}
}
我希望将其映射到 MySQL 中的 blob 数据类型,但我不断收到 varbinary(255)
如何让它映射到“blob”?
最佳答案
我用了Pomelo.EntityFrameworkCore.MySql解决我的问题。
关于mysql - 如何使用 byte[] 在 Entity Framework Core 的 MySQL 中存储 'blob' 类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41234762/