-
Notifications
You must be signed in to change notification settings - Fork 11
/
BusinessEvent.cs
54 lines (38 loc) · 1.18 KB
/
BusinessEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Prime.Models
{
[Table("BusinessEvent")]
public class BusinessEvent : BaseAuditable
{
[Key]
public int Id { get; set; }
public int? EnrolleeId { get; set; }
[JsonIgnore]
public Enrollee Enrollee { get; set; }
public int? AdminId { get; set; }
[NotMapped]
public string AdminIDIR
{
get => Admin?.IDIR;
}
[JsonIgnore]
public Admin Admin { get; set; }
public int? PartyId { get; set; }
[JsonIgnore]
public Party Party { get; set; }
public int? SiteId { get; set; }
[JsonIgnore]
public Site Site { get; set; }
public int? OrganizationId { get; set; }
[JsonIgnore]
public Organization Organization { get; set; }
public int BusinessEventTypeCode { get; set; }
[JsonIgnore]
public BusinessEventType BusinessEventType { get; set; }
public string Description { get; set; }
public DateTimeOffset? EventDate { get; set; }
}
}