【发布时间】:2017-05-05 05:21:34
【问题描述】:
我的代码优先模型如下所示:
public class Document
{
[Key]
public int DocumentId {get;set;}
[Required]
public byte[] Blob {get; set;}
}
我希望它映射到 MySQL 中的 blob 数据类型,但我不断收到 varbinary(255)
如何让它映射到“blob”?
【问题讨论】:
标签: mysql entity-framework-core