mdisibio
mdisibio

Reputation: 3540

Disable the totaling of numeric properties when using linqpad Dump

(I'm new to linqpad). When using the 'Dump' extension simply to display an object graph, if my object has a collection with numeric properties, say a collection of Books with a numeric Id, the Book.Id gets totaled for all books in that collection. Is there a way to disable this default behavior?

Upvotes: 2

Views: 472

Answers (1)

Joe Albahari
Joe Albahari

Reputation: 30964

LINQPad doesn't show totals on columns it knows to be a primary key, but otherwise it has no way of knowing that that information isn't potentially useful.

If your books table doesn't have a primary key on ID, another issue is that you won't be able to update it via LINQ.

Upvotes: 1

Related Questions