개정판 08499f5f
issue #00000 documents에 attfile 추가
Change-Id: I1b8152672a9ead34fcb1ffea4f40e200fe42f0ab
ID2.Manager/ID2.Manager.Data/Models/AttFileInfo.cs | ||
---|---|---|
5 | 5 |
using System.Threading.Tasks; |
6 | 6 |
|
7 | 7 |
using System.Runtime.Serialization; |
8 |
using System.ComponentModel; |
|
9 |
using System.ComponentModel.DataAnnotations.Schema; |
|
8 | 10 |
|
9 | 11 |
namespace ID2.Manager.Data.Models |
10 | 12 |
{ |
11 | 13 |
[DataContract] |
12 |
public class AttFileInfo |
|
14 |
public class AttFileInfo : IEquatable<AttFileInfo>
|
|
13 | 15 |
{ |
16 |
private string fileID; |
|
17 |
|
|
14 | 18 |
[DataMember] |
15 |
public string FileID { get; set; } |
|
19 |
public string FileID { get => fileID; |
|
20 |
set => fileID = value; } |
|
16 | 21 |
[DataMember] |
17 | 22 |
public string RefID { get; set; } |
18 | 23 |
[DataMember] |
... | ... | |
33 | 38 |
public DateTime CreatedDate { get; set; } |
34 | 39 |
[DataMember] |
35 | 40 |
public string Creator { get; set; } |
41 |
|
|
42 |
public bool Equals(AttFileInfo other) |
|
43 |
{ |
|
44 |
return other != null |
|
45 |
&& FileID == other.FileID |
|
46 |
&& RefID == other.RefID |
|
47 |
&& Category == other.Category |
|
48 |
&& FileType == other.FileType |
|
49 |
&& FilePath == other.FilePath |
|
50 |
&& FileName == other.FileName |
|
51 |
&& FileExtension == other.FileExtension |
|
52 |
&& FileData == other.FileData |
|
53 |
&& CreatedDate == other.CreatedDate |
|
54 |
&& Creator == other.Creator; |
|
55 |
} |
|
56 |
|
|
57 |
public override int GetHashCode() |
|
58 |
{ |
|
59 |
return this.FileID.GetNullableHash() + this.RefID.GetNullableHash() + this.Category.GetNullableHash() + this.FileType.GetNullableHash() |
|
60 |
+ FilePath.GetNullableHash() + FileName.GetNullableHash() + FileExtension.GetNullableHash() + FileData.GetNullableHash() + CreatedDate.GetNullableHash() + Creator.GetNullableHash(); |
|
61 |
} |
|
62 |
|
|
36 | 63 |
} |
37 | 64 |
} |
내보내기 Unified diff