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.
当我查看 PetaPoco [Micro ORM] 代码时,我看到了
else if (t == typeof(Guid)) { p.Value = item.ToString(); p.DbType = DbType.String; p.Size = 40; }
为什么 PetaPoco 会做出这个决定?选择将 guid 写为字符串而不是二进制?
如果 GUID 映射到字符串,从应用程序外部查询数据库会容易得多。