private static bool Act(string[] args) { var db = new TestDb(); db.CreateScalarFunction(new ContainsScalarFunction()); var input1 = args[0]; var input2 = args[1]; var contains = db.ExecuteScalar <bool>("select " + ContainsScalarFunction.Function_Name + "(?, ?);", input1, input2); return(contains); }