温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:逐迹内容管理系统AspxNuke v2.0源码
当前文件路径:AspxNuke/Portal/Domain/Logging.cs

1using System; 2
using AspxNuke.Library.Text; 3
4
namespace AspxNuke.Portal.Domain 5
{ 6
/// <summary> 7
/// 日志 8
/// </summary> 9
public class Logging 10
{ 11
private string _id; 12
/// <summary> 13
/// 标识 14
/// </summary> 15
public virtual string Id 16
{ 17
set 18
{ 19
_id = value; 20
} 21
get { return _id; } 22
} 23
24
private int _type; 25
/// <summary> 26
/// 类型 27
/// </summary> 28
public virtual int Type 29
{ 30
set 31
{ 32
_type = value; 33
} 34
get { return _type; } 35
} 36
37
private int _class; 38
/// <summary> 39
/// 类别 40
/// </summary> 41
public virtual int Class 42
{ 43
set 44
{ 45
_class = value; 46
} 47
get { return _class; } 48
} 49
50
private string _source; 51
/// <summary> 52
/// 来源 53
/// </summary> 54
public virtual string Source 55
{ 56
set 57
{ 58
if (value != null && ValidHelper.BytesSize(value) > 100) 59
{ 60
throw new ArgumentOutOfRangeException("来源不能大于100字节!", value, value.ToString()); 61
} 62
_source = value; 63
} 64
get { return _source; } 65
} 66
67
private string _description; 68
/// <summary> 69
/// 描述 70
/// </summary> 71
public virtual string Description 72
{ 73
set 74
{ 75
_description = value; 76
} 77
get { return _description; } 78
} 79
80
private string _createdByUser; 81
/// <summary> 82
/// 提交用户 83
/// </summary> 84
public virtual string CreatedByUser 85
{ 86
set 87
{ 88
if (value != null && ValidHelper.BytesSize(value) > 30) 89
{ 90
throw new ArgumentOutOfRangeException("提交用户不能大于30字节!", value, value.ToString()); 91
} 92
_createdByUser = value; 93
} 94
get { return _createdByUser; } 95
} 96
97
private string _createdByIp; 98
/// <summary> 99
/// 提交IP 100
/// </summary> 101
public virtual string CreatedByIp 102
{ 103
set 104
{ 105
if (value != null && ValidHelper.BytesSize(value) > 15) 106
{ 107
throw new ArgumentOutOfRangeException("提交IP不能大于15字节!", value, value.ToString()); 108
} 109
_createdByIp = value; 110
} 111
get { return _createdByIp; } 112
} 113
114
private DateTime _createdByDate; 115
/// <summary> 116
/// 提交时间 117
/// </summary> 118
public virtual DateTime CreatedByDate 119
{ 120
set 121
{ 122
_createdByDate = value; 123
} 124
get { return _createdByDate; } 125
} 126
127
} 128
} 129
130
131





}