markus / License.DB / UploadItem.cs @ 1305c420
이력 | 보기 | 이력해설 | 다운로드 (724 Bytes)
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 UploadItem |
11 |
{ |
12 |
[BsonId] |
13 |
public ObjectId Id { get; set; } |
14 |
|
15 |
public string FileName { get; set; } |
16 |
|
17 |
public long Size { get; set; } |
18 |
|
19 |
public UploadItem(string filename, long size) |
20 |
{ |
21 |
Id = ObjectId.NewObjectId(); |
22 |
FileName = filename; |
23 |
Size = size; |
24 |
} |
25 |
|
26 |
[BsonCtor] |
27 |
public UploadItem(ObjectId _id, string filename, long size) |
28 |
{ |
29 |
Id = ObjectId.NewObjectId(); |
30 |
FileName = filename; |
31 |
Size = size; |
32 |
} |
33 |
} |
34 |
} |