markus / License.DB / Active.cs @ master
이력 | 보기 | 이력해설 | 다운로드 (1.21 KB)
1 |
using LiteDB; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
|
8 |
namespace License.DB |
9 |
{ |
10 |
public class Active |
11 |
{ |
12 |
[BsonId] |
13 |
public ObjectId Id { get; set; } |
14 |
|
15 |
public string UserName { get; set; } |
16 |
public string MachineName { get; set; } |
17 |
|
18 |
public string Process { get; set; } |
19 |
|
20 |
public DateTime ActiveTime { get; set; } |
21 |
|
22 |
public DateTime UpdateTime { get; set; } |
23 |
|
24 |
public Active(string userName, string machineName, string process, DateTime activeTime, DateTime updateTime) |
25 |
{ |
26 |
Id = ObjectId.NewObjectId(); |
27 |
UserName = userName; |
28 |
MachineName = machineName; |
29 |
Process = process; |
30 |
ActiveTime = activeTime; |
31 |
UpdateTime = updateTime; |
32 |
} |
33 |
|
34 |
[BsonCtor] |
35 |
public Active(ObjectId _id, string userName, string machineName, string process, DateTime activeTime, DateTime updateTime) |
36 |
{ |
37 |
Id = ObjectId.NewObjectId(); |
38 |
UserName = userName; |
39 |
MachineName = machineName; |
40 |
Process = process; |
41 |
ActiveTime = activeTime; |
42 |
UpdateTime = updateTime; |
43 |
} |
44 |
} |
45 |
} |