查看了sqlite的文档,它提供了regexp(a,b) match(a,b)函数,但未实现,如何在.net中应用,搜索了半天,没找到相关的资料,不知道园子时原朋友做过相关的事情,提点一下,困了一天了
几经波折,总算是解决了,呵呵,如下:
这可是我不传人的秘技哦,
1
using System;
2
using System.Collections.Generic;
3
using System.Text;
4
5
using System.Data.SQLite;
6
namespace DBSchema2Doc.OP
7
{
8
class MyRegExp:SQLiteFunction
9
{
10
public override object Invoke(object[] args)
11
{
12
return System.Text.RegularExpressions.Regex.IsMatch(Convert.ToString(args[1]), Convert.ToString(args[0]));
13
}
14
}
15
}

2

3

4

5

6

7

8

9

10

11

12

13

14

15
