SqlParameter: Argument is not used in format string from Resharper

c# entity-framework-core resharper

Accepted Answer

ZZZ_tmp
7
5/14/2018 2:16:58 PM

Popular Answer

The issue here is that an is being converted from the string literal.RawSqlString which, if you hover over the method signature, you can observeFromSql .

Using a string variable for your query might be a solution to remove the warning.

string query = "get_children_fluxo_closure @node_id";
var children = context.FluxoHierarchy
    .FromSql(query, new SqlParameter("@node_id", queueItem.ProximoNode))
    .ToList();


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow