Esempio n. 1
0
 public RolePermission(Role role, Permission permission)
 {
     Role       = role;
     Permission = permission;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RolePermission" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a RolePermission (required).</param>
 /// <param name="role">Role (required).</param>
 /// <param name="permission">A foreign key reference to the system-generated unique identifier for a Permission (required).</param>
 public RolePermission(Guid id, Role role, Permission permission)
 {
     Id         = id;
     Role       = role;
     Permission = permission;
 }