假设我有这个方法
public static void LockPerformanceToDB(List<performance> listOfPerformances)
{
    //Do I need just to wrap this call with a loop? ... 
    using(var con = new OpenConnection)
    {
       //I call the LockPerformanceToDB SPROC here ...
    }
}
我在数据库中也有这个过程:
CREATE PROCEDURE LockPerformancesToDB
    @UserId INT,
    @Comments VARCHAR(50),
    @TimeStamp DATETIME
AS
BEGIN
    INSERT INTO Performance
    (UserId, Comments, [TimeStamp])
    VALUES
    (@UserId, @Comments, @TimeStamp)
END
这个 sproc 一次处理一个插入。很明显,该列表具有几个相同的性能对象。循环遍历列表中的每个对象是解决方案吗?
我想知道除了循环和调用 sproc 的次数与 lisOfPerformances 中的对象一样多之外是否有不同的解决方案?
感谢您的帮助