How to use Dapper to automatically map remaining columns to dictionary?
问题 I am attempting to use Dapper to map to my DTO: public class MyDto { public int Id { get; set; } public string Code { get; set; } public IDictionary<string, object> AdditionalColumns { get; set; } } I can have an instance of MyDto populate the first two properties based on convention, but I'm not sure how to tell Dapper to map all remaining columns into the dictionary. connection.Query<MyDto>("Get_Something", commandType: CommandType.StoredProcedure, param: parameters); The stored procedure