在我的VS 2017上安装了Resharper后,我在SqlParameter参数上收到了这个警告。
resharper提供给我的解决方案是删除多余的参数。
参数未在格式字符串中使用
var children = context.FluxoHierarchy
.FromSql("get_children_fluxo_closure @node_id", new SqlParameter("@node_id", queueItem.ProximoNode)).ToList();
resharper提供给我的解决方案是删除多余的参数。
var children = context.FluxoHierarchy
.FromSql("get_children_fluxo_closure @node_id").ToList();
我的代码有问题吗?