DD.WellWorkover.Cloud/AsbCloudDb/Model/RelationUserRoleUserRole.cs

23 lines
706 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_relation_user_role_user_role"), Comment("Отношение ролей к ролям")]
public class RelationUserRoleUserRole
{
[Column("id_user_role")]
public int Id { get; set; }
[Column("id_include_user_role")]
public int IdInclude { get; set; }
[ForeignKey(nameof(Id))]
[InverseProperty(nameof(UserRole.RelationUserRoleUserRoles))]
public virtual UserRole Role { get; set; } = null!;
[ForeignKey(nameof(IdInclude))]
public virtual UserRole IncludeRole { get; set; } = null!;
}
}