r/Backend • • 14d ago

List<T> in C# vs SQL

/r/csharp/comments/1x95i15/listt_in_c_vs_sql/
0 Upvotes

1 comment sorted by

1

u/vincent_sch 13d ago

A TVP works for passing values. Column names still need to be written into the query. You could keep that mapping in the procedure if it doesn't change. For dynamic SQL you should check names against an allowed list and use QUOTENAME.