Revize a35cb648
Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)
Backend/Core/Entities/Annotation.cs | ||
---|---|---|
11 | 11 |
{ |
12 | 12 |
public class Annotation : BaseEntity |
13 | 13 |
{ |
14 |
/*[ForeignKey("Document")] |
|
15 |
public int DocumentId { get; set; }*/ |
|
14 |
/// <summary> |
|
15 |
/// Document that the annotation refers to |
|
16 |
/// </summary> |
|
16 | 17 |
public Document Document { get; set; } |
17 | 18 |
|
18 |
/*[ForeignKey("User")] |
|
19 |
public int UserId { get; set; }*/ |
|
19 |
/// <summary> |
|
20 |
/// User the annotation is assigned to |
|
21 |
/// </summary> |
|
20 | 22 |
public User User { get; set; } |
21 | 23 |
|
22 |
/*[ForeignKey("User")] |
|
23 |
public int UserAssignedId { get; set; }*/ |
|
24 |
/// <summary> |
|
25 |
/// The user that assigned the annotation |
|
26 |
/// </summary> |
|
24 | 27 |
public User UserAssigned { get; set; } |
25 | 28 |
|
29 |
/// <summary> |
|
30 |
/// The date the annotation was assigned |
|
31 |
/// </summary> |
|
26 | 32 |
public DateTime DateAssigned { get; set; } |
33 |
|
|
34 |
/// <summary> |
|
35 |
/// The state of the annotation |
|
36 |
/// </summary> |
|
27 | 37 |
public EState State { get; set; } |
38 |
|
|
39 |
/// <summary> |
|
40 |
/// The date the annotation was last modified |
|
41 |
/// </summary> |
|
28 | 42 |
public DateTime DateLastChanged { get; set; } |
43 |
|
|
44 |
/// <summary> |
|
45 |
/// Annotation note |
|
46 |
/// </summary> |
|
29 | 47 |
public string Note { get; set; } = ""; |
30 | 48 |
|
49 |
//Cached information START |
|
31 | 50 |
public string CachedDocumentHTML { get; set; } = ""; |
32 | 51 |
public string CachedStartPositions { get; set; } = ""; |
33 | 52 |
public string CachedLengths { get; set; } = ""; |
34 | 53 |
public string CachedClosingPositions { get; set; } = ""; |
35 | 54 |
public string CachedClosingLengths { get; set; } = ""; |
36 | 55 |
public string CachedCSS { get; set; } = ""; |
56 |
//Cached information END |
|
37 | 57 |
|
58 |
/// <summary> |
|
59 |
/// ID of the last modified tag |
|
60 |
/// </summary> |
|
38 | 61 |
public Guid? LastModifiedTagId { get; set; } |
62 |
|
|
63 |
/// <summary> |
|
64 |
/// The modification that is done |
|
65 |
/// </summary> |
|
39 | 66 |
public EModified ModifiedType { get; set; } = EModified.NONE; |
40 | 67 |
|
68 |
/// <summary> |
|
69 |
/// Unused |
|
70 |
/// </summary> |
|
41 | 71 |
public ICollection<Class> Classes { get; set; } = new List<Class>(); |
42 | 72 |
|
73 |
/// <summary> |
|
74 |
/// So that EF creates a join table as 1 final annotation to N annotations |
|
75 |
/// </summary> |
|
76 |
|
|
43 | 77 |
public ICollection<FinalAnnotation> FinalAnnotations { get; set; } = new List<FinalAnnotation>(); |
44 | 78 |
} |
45 | 79 |
} |
Také k dispozici: Unified diff
Added comments to backend