hytos / ID2.Manager / ID2.Manager.Data / Models / MarkupText.cs @ 00d11333
이력 | 보기 | 이력해설 | 다운로드 (959 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections; |
3 |
using System.Collections.Generic; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
using System.Threading.Tasks; |
7 |
|
8 |
namespace ID2.Manager.Data.Models |
9 |
{ |
10 |
public class MarkupText : IEquatable<MarkupText> |
11 |
{ |
12 |
public string PROJECT_NO { get; set; } |
13 |
|
14 |
public string NAME { get; set; } |
15 |
|
16 |
public string DOCUMENT_ID { get; set; } |
17 |
|
18 |
public string TEXT { get; set; } |
19 |
public DateTime CREATE_DATE { get; set; } |
20 |
|
21 |
|
22 |
public bool Equals(MarkupText other) |
23 |
{ |
24 |
return other != null |
25 |
&& NAME == other.NAME |
26 |
&& TEXT == other.TEXT |
27 |
&& CREATE_DATE == other.CREATE_DATE |
28 |
&& DOCUMENT_ID == other.DOCUMENT_ID; |
29 |
} |
30 |
|
31 |
public override int GetHashCode() |
32 |
{ |
33 |
return this.TEXT.GetHashCode() + this.CREATE_DATE.GetHashCode() + NAME.GetHashCode() + DOCUMENT_ID.GetHashCode(); |
34 |
} |
35 |
|
36 |
|
37 |
} |
38 |
} |