除了code first和db first外,下面的直接调用比较方便:
https://dotnetthoughts.net/how-to-execute-a-stored-procedure-with-entity-framework-code-first/
解决,增加一个参数的灵活性
https://www.c-sharpcorner.com/blogs/execute-store-procedure-in-entity-framework
https://stackoverflow.com/questions/33914166/call-stored-procedure-using-executesqlcommand-expects-parameters-which-was-not