No mapping exists from object type System.Collections.Generic.List when executing stored proc with parameters in EF 4.3

后端 未结 7 1483
旧巷少年郎
旧巷少年郎 2020-12-30 19:30

Lately I\'ve been working on stored procedure and encountered 1 strange problem.

First, I was able to successfully call a stored procedure from the database via:

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 20:12

    didn't state SQL Server version, but Erland Sommarskog has an article on how to use Table-Valued Parameters in SQL Server and .NET.

    http://www.sommarskog.se/arrays-in-sql-2008.html

    Able to pass a variable amount of arguments from client using a single parameter.

提交回复
热议问题