I'm adding features to an existing ASP.NET project. The code calls a stored procedure to add a row to a particular table. I need the option of also allowing one of the columns to have multiple values, in which case a row would be added for each value in that column.
I know I can call my insert method once for each row, but that sounds horribly inefficient. I know I could write multiple lines, delimited by semi-colons, and send them to the database in one request. But the existing code calls a stored procedure and so multiple insert statements would require I modify the heck of the existing code.
Note that the multiple values will be stored as multiple lines in a textbox, one line per value, and must obviously checked for being correctly entered.
Is there a simpler way to approach this?