How to simulate regular expressions in LINQ-to-SQL

后端 未结 5 1586
生来不讨喜
生来不讨喜 2020-12-08 12:20

I have a database table with customer account numbers. Within the same table are test accounts that don\'t match the production formatting: say, \'A1111\' is production but

5条回答
  •  有刺的猬
    2020-12-08 12:49

    Are you using LINQ-to-SQL? If so, MSDN forums state the following:

    LINQ to SQL cannot translate regular expressions to SQL because there's no support for Regex at the SQL end.

    It does give 3 alternatives though.

提交回复
热议问题