summaryrefslogtreecommitdiff
path: root/Acl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Acl.cs')
-rw-r--r--Acl.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/Acl.cs b/Acl.cs
index 297144e..8beff0c 100644
--- a/Acl.cs
+++ b/Acl.cs
@@ -7,7 +7,9 @@ public enum AclRuleAction {
Deny
}
-public class Acl : HBObject {
+public class Acl {
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int AclId { get; set; }
[ForeignKey("ObjectId")]
public HBObject Subject { get; set; }
public List<AclRule> Rules { get; set; }
@@ -22,11 +24,13 @@ public class Acl<T> : Acl where T : Enum {
}
}
-public class AclRule : HBObject {
- public HBPrincipal Principal { get; set; }
- public AclRuleAction Action { get; set; }
+public class AclRule {
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int AclRuleId { get; set; }
+ public SecurityIdentifier Principal { get; set; }
+ public AclRuleAction Action { get; set; }
[Column(TypeName = "bigint")]
- public ulong Permissions { get; set; }
+ public ulong Permissions { get; set; }
}
public class AclRule<T> : AclRule where T : Enum {