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

26 lines
708 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
#nullable disable
[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; }
[ForeignKey(nameof(IdInclude))]
public virtual UserRole IncludeRole { get; set; }
}
}