hytos / ID2.Manager / ID2.Manager.Data / Models / MarkupText.cs @ 2ade1e61
이력 | 보기 | 이력해설 | 다운로드 (1.16 KB)
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 : NotifyPropertyChange , IEquatable<MarkupText> |
11 |
{ |
12 |
|
13 |
private string projectNo; |
14 |
public string PROJECT_NO { get => projectNo; set => SetProperty(ref projectNo, value); } |
15 |
|
16 |
public string CREATE_USER { get; set; } |
17 |
|
18 |
public string DocumentNo { get; set; } |
19 |
|
20 |
public string TEXT { get; set; } |
21 |
public DateTime CREATE_DATE { get; set; } |
22 |
|
23 |
|
24 |
public bool Equals(MarkupText other) |
25 |
{ |
26 |
return other != null |
27 |
&& PROJECT_NO == other.PROJECT_NO |
28 |
&& CREATE_USER == other.CREATE_USER |
29 |
&& TEXT == other.TEXT |
30 |
&& CREATE_DATE == other.CREATE_DATE |
31 |
&& DocumentNo == other.DocumentNo; |
32 |
} |
33 |
|
34 |
public override int GetHashCode() |
35 |
{ |
36 |
return this.CREATE_USER.GetNullableHash() + this.TEXT.GetNullableHash() + this.CREATE_DATE.GetNullableHash() + PROJECT_NO.GetNullableHash() + DocumentNo.GetNullableHash(); |
37 |
} |
38 |
|
39 |
|
40 |
} |
41 |
} |