System.FormatException: '反序列化 属性 时发生错误。借助mongoDB.Driver C#使用聚合函数

System.FormatException: 'An error occurred while deserializing the property. Using aggregate function with the help of mongoDB.Driver C #

是否有任何方法可以合并来自 MongoDB C#

的集合

I think the problem with @as...

Created the main class which contains combinations of mail class and profile class. But different error.

In Studio 3T I am getting data

型号如下

var Result = await MailCollection.Aggregate()
            .Lookup(
            foreignCollection: ProfileCollection,
            localField: e => e.SenderID,
            foreignField: f => f.Id,
            @as: (MailInfo profile) => profile.SenderInfo
            ).ToListAsync();

SenderInfo property changed to List<Profile>