我有以下代码
Regex R = new Regex("my regex");
var q = from c in db.tble1
where R.IsMatch(c.text)
select c;
在调试时我在 q 结果中看到了这条消息
方法 'Boolean IsMatch(System.String)' 没有支持的 SQL 转换。"} System.SystemException {System.NotSupportedException}
所以我做错了什么?
编辑:我了解到该方法不支持对 SQL 的翻译,
但如何解决这个问题