Function Is Not Convertible To Sql And Must Not Be Called In The Database Context