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
{
///
/// Id of the Role.
///
public Guid RoleId { get; set; }
///
/// Id of the Branch />.
///
public Guid BranchId { get; set; }
///
/// Initializes a new instance of the BranchRole/> class.
///
protected BranchRole()
{
}
///
/// Initializes a new instance of the BranchRole/> class.
///
/// Id of the Role.
/// Id of the Branch/>.
public BranchRole(Guid roleId, Guid branchId)
{
RoleId = roleId;
BranchId = branchId;
}
public override object[] GetKeys()
{
return new object[] { BranchId, RoleId };
}
}
}