[英]How to map binary(16) to Guid using NPOCO?
I have a table in my MySQL database with below structure 我的MySQL数据库中有一个具有以下结构的表
How to map primary key AffiliateSiteId binary(16) to Guid using NPOCO in c# net core? 如何在C#网络核心中使用NPOCO将主键AffiliateSiteId二进制(16)映射到Guid?
I guess you can create a Guid using AffiliateSiteId. 我想您可以使用AffiliateSiteId创建Guid。
Ex. 例如 If your AffiliateSiteId is a string then you can create a guid as follows but I have no idea about NPOCO. 如果您的AffiliateSiteId是字符串,则可以按如下方式创建一个GUID,但我对NPOCO一无所知。
var siteId = new Guid(AffiliateSiteId);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.