c# - 如何使用带有 grpc 重复类型的 automapper
问题描述
我有以下谷歌原型模型
message PlatformsDTO
{
repeated .cms.PlatformDTO Platforms = 1;
}
message PlatformDTO{
string Code = 1;
string Name = 2;
bool IsActive =3;
}
以及我的平台模型的以下类实现
public class PLATFORMS
{
public string Code { get; set; }
public string Name { get; set; }
public bool IsActive { get; set; }
}
我想要实现的是将 PlatformsDto 的重复 Platforms 属性映射到List<PLATFORMS>
我将不胜感激任何帮助,因为我不知道如何做到这一点..
解决方案
推荐阅读
- c++ - 向现有项目添加更多平台
- google-analytics - 将 Google Analytics 的 URL 跟踪参数添加到内部网站搜索查询时出错
- elasticsearch - 如何从搜索中排除字段中的 {}
- python - 在 canopy 终端中从 github 安装 python 包时出错
- meteor - 如何在 Meteor.js 启动时禁用订阅通知?
- python - 通过中央服务器连接由不同线程连接的两个套接字客户端作为客户端服务器对
- scala - IntelliJ IDEA 能否通过 Scalate 的 Jade / Pug 风格提供适当的 Scala 帮助?
- mysql - 使用 Ruby on Rails 创建 MySQL 数据的正态分布
- php - 将 TFS 用于非 Microsoft 项目
- javascript - 检测视频是否在 javascript 插件 plyr 中播放