Method that returns an anonymous Object

Tom Meier 140 Reputation points
2024-05-13T18:34:22.9033333+00:00

Hello Friends I just have a question about the code below that uses Dapper to get data. I was wondering why do I need the code new{Id} and how does Dapper handle that one property. Thanks !

var output=_db.LoadDataItem<PayerModel, dynamic>(sql, new {Id}, connString);
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,394 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful