C# 如何将automapper与grpc重复类型一起使用

C# 如何将automapper与grpc重复类型一起使用,c#,automapper,grpc,proto,C#,Automapper,Grpc,Proto,我有以下谷歌原型 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; } pu

我有以下谷歌原型

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的repeatedplatforms属性映射到
列表中

我将非常感谢您的帮助,因为我不知道该怎么做