If there is a corresponding FbConnection
, and if that connection is a standard ADO.NET implementation, and if it supports standard parameters, then yes, you could try doing:
using(FbConnection conn = ...)
{
var data = conn.Query<SomeType>(
"select * from SOME_PROCEDURE(@value1, @value2)",
new { value1, value2 }).ToList();
// ...
}
You could also try:
using(FbConnection conn = ...)
{
var data = conn.Query<SomeType>("SOME_PROCEDURE",
new { param1 = value1, param2 = value2 },
commandType: CommandType.StoredProcedure).ToList();
// ...
}