· 7 years ago · Aug 23, 2018, 02:34 PM
1public class AspNetApplicationRoles
2{
3 public String Id { get; set; }
4 public String ApplicationId { get; set; }
5 public AspNetApplications Application { get; set; }
6 public String RoleId { get; set; }
7 public IdentityRole Role { get; set; }
8}
9
10public class AspNetApplications
11{
12 public String Id { get; set; }
13 public String Name { get; set; }
14 public String Description { get; set; }
15 public String SecretKey { get; set; }
16 private DateTime createdOn = DateTime.Now;
17 public DateTime CreatedOn
18 {
19 get
20 {
21 return (createdOn == DateTime.MinValue) ? DateTime.Now : createdOn;
22 }
23 set
24 {
25 createdOn = value;
26 }
27 }
28 private DateTime updatedOn = DateTime.Now;
29 public DateTime UpdatedOn
30 {
31 get
32 {
33 return (updatedOn == DateTime.MinValue) ? DateTime.Now : updatedOn;
34 }
35 set
36 {
37 updatedOn = value;
38 }
39 }
40}