我有以下声明:
someList = dc.ExecuteQuery<MyCustomType>(@"Select Id As ProductId, Name From ivProduct").ToList();
当 MyCustomType 的 Id 属性为 INT 时,数据库中的 Id 存储为 int32。有没有办法在选择期间将该 int32 转换为 int ?
谢谢
我有以下声明:
someList = dc.ExecuteQuery<MyCustomType>(@"Select Id As ProductId, Name From ivProduct").ToList();
当 MyCustomType 的 Id 属性为 INT 时,数据库中的 Id 存储为 int32。有没有办法在选择期间将该 int32 转换为 int ?
谢谢