i am trying to get a db function call to check if an object exists, the function returns bit value.
var dt = new DataTable();
var rf = new ResultsetFields(1);
rf[0].ExpressionToApply = new DbFunctionCall("dbo", "SfObjectExists", new object[] { "Person", "u" });
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchTypedList(rf, dt, null);
}
When i run it i get rf[0] is null exception . Is the correct way to call the scalar value function?
LLBL v4.2 latest, VS2013, SQL Server 2014.
Thanks