I need to match certain string with wildcards, pretty much like with SQL LIKE. While there are similar questions on this topic, I am using Unity3D and while its Mono.NET library has LINQ, it doesn’t have SqlMethods.
I would need to a way to emulate all the wild card characters. So '*MSB' should be able to match EastMSB, WestMSB, and DB0?-?? should match ‘DB01-11’, ‘DB01-07’ and etc.
Linq is able to expand methods of
System.Stringclass likeContainsinto appropriateSQLqueries so, the following query:would be “translated” into something like:
At least, this is what I am getting using LinqPad.