【发布时间】:2011-05-26 23:59:43
【问题描述】:
我在 mysql (binary 16) 中有一个标识符为 GUID 的表。 要执行 CRUD 操作,我使用安装 mysql 连接器 v.6.3.6 附带的 EF 驱动程序。 尝试通过 EF 插入新对象时,失败并出现错误 {"Data too long for column 'MyIdentifierColumnId' at row 1"}
MyIdentifierColumnId 是 二进制 16 并在 .NET 中翻译为 GUID。所以长度应该不是问题。
有什么提示吗?
【问题讨论】:
标签: c# .net mysql entity-framework guid