Bootstrap

ef core调用存储过程

List<GetAlarmReport_Result> rows = null;

        this.LoadStoredProc("dbo.GetAlarmReport")
           .AddParam("key", key)
           .AddParam("sdt", sdt)
           .AddParam("edt", edt)
           .Exec(r => rows = r.ToList<GetAlarmReport_Result>());
;