📜  在 C# 实体框架中调用存储过程 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.932000             🧑  作者: Mango

代码示例1
using (var db = new SyXEntities())
{
    var repeatDetails = db.Database.SqlQuery("Get_RepeatBetDetails @BetID", new SqlParameter("BetID", betID)).ToList();
    return repeatDetails;
}