You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (var ctx = new FbTestModel())
{
var x = ctx.Database.SqlQuery<int>("select int_field from test where int_field = @start", 10);
var i = x.SingleOrDefault();
}
raises the error:
Must declare the variable '@start'
The text was updated successfully, but these errors were encountered:
You should either use as parameter name @p0 or construct the parameter object explicitly.
ctx.Database.SqlQuery<int>("select int_field from test where int_field = @p0", 10);
ctx.Database.SqlQuery<int>("select int_field from test where int_field = @start", new FbParameter("@start", 10));
Submitted by: Fabiano Rezende (fabiano.rezende)
try this:
using (var ctx = new FbTestModel())
{
var x = ctx.Database.SqlQuery<int>("select int_field from test where int_field = @start", 10);
var i = x.SingleOrDefault();
}
raises the error:
Must declare the variable '@start'
The text was updated successfully, but these errors were encountered: