我们是否有像 IActivityLogger (V3) 这样的界面,在 V4 中记录所有用户活动?
我想在我的 Cosmos 数据库中记录所有用户查询和机器人响应。我能够使用 IActivityLogger 接口在 V3 中做到这一点。
请建议。
我有两个列表,一个是 ids 列表
List<int> ids = new List<int> { 1, 2, 3,4, 5};
另一个包含数据 Person 类的列表有两个属性 Id 和 Name
List<Person> persons= new List<Person> { new Person { Name = "test1"}, new Person { Name = "test2"}, new Person { Name = "test3"}, new Person { Name = "test4"}, new Person { Name = "test5"}};
Run Code Online (Sandbox Code Playgroud)
现在我想从 id 列表中为每个人填充 id。
有没有办法在 linq 中做到这一点?