forked from cyq1162/cyqdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAopEnum.cs
69 lines (67 loc) · 1.48 KB
/
AopEnum.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
using System.Text;
namespace CYQ.Data.Aop
{
/// <summary>
/// 框架内部数据库操作方法枚举
/// </summary>
public enum AopEnum
{
Select,
Insert,
Update,
Delete,
Fill,
GetCount,
Exists,
ExeMDataTableList,
ExeMDataTable,
ExeNonQuery,
ExeScalar
}
/// <summary>
/// Aop函数的处理结果
/// </summary>
public enum AopResult
{
/// <summary>
/// 本结果将执行原有事件,但跳过Aop.End事件
/// </summary>
Default,
/// <summary>
/// 本结果将继续执行原有事件和Aop.End事件
/// </summary>
Continue,
/// <summary>
/// 本结果将跳过原有事件,但会执行Aop End事件
/// </summary>
Break,
/// <summary>
/// 本结果将直接跳出原有函数的执行
/// </summary>
Return,
}
/// <summary>
/// Aop开关选项
/// </summary>
public enum AopOp
{
/// <summary>
/// 正常打开
/// </summary>
OpenAll,
/// <summary>
/// 仅打开内部Aop(即自动缓存,关闭外部Aop)
/// </summary>
OnlyInner,
/// <summary>
/// 仅打开外部Aop(关闭自动缓存)
/// </summary>
OnlyOuter,
/// <summary>
/// 内外都关(自动缓存和外部Aop)
/// </summary>
CloseAll
}
}