James L
James L

Reputation: 16864

How to pass table parameters to SQL Server stored procedures in EF Core?

All the examples I've seen involve creating a System.Data.DataTable, but that now has no public ctor. What's the recommendation now?

Upvotes: 0

Views: 553

Answers (1)

ErikEJ
ErikEJ

Reputation: 41779

Use SqlDataRecord instead of DataTable as in the sample gist here: https://gist.github.com/divega/f0f88bf16f35641239cfd9bc534e8d7c

Upvotes: 1

Related Questions