You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
2 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using System.Text;
|
||
|
using Volo.Abp.Domain.Entities.Auditing;
|
||
|
using Volo.Abp.MultiTenancy;
|
||
|
|
||
|
namespace BaseService.RelationBaseData
|
||
|
{
|
||
|
public class BranchRole : CreationAuditedEntity
|
||
|
{
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id of the Role.
|
||
|
/// </summary>
|
||
|
public Guid RoleId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Id of the Branch />.
|
||
|
/// </summary>
|
||
|
public Guid BranchId { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the BranchRole/> class.
|
||
|
/// </summary>
|
||
|
protected BranchRole()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the BranchRole/> class.
|
||
|
/// </summary>
|
||
|
|
||
|
/// <param name="roleId">Id of the Role.</param>
|
||
|
/// <param name="branchId">Id of the Branch/>.</param>
|
||
|
public BranchRole(Guid roleId, Guid branchId)
|
||
|
{
|
||
|
RoleId = roleId;
|
||
|
BranchId = branchId;
|
||
|
}
|
||
|
|
||
|
public override object[] GetKeys()
|
||
|
{
|
||
|
return new object[] { BranchId, RoleId };
|
||
|
}
|
||
|
}
|
||
|
}
|