- Vererbung von BaseDTO auf alle Erstellungs-, Lese- und Aktualisierungs-DTOs angewendet, mit Ausnahme von Module und ModuleOfUser.
36 lines
1009 B
C#
36 lines
1009 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel;
|
|
|
|
namespace DigitalData.UserManager.Domain.Entities
|
|
{
|
|
[Table("TBDD_USER_REPRESENTATION", Schema = "dbo")]
|
|
public class UserRep : BaseEntity
|
|
{
|
|
[Required]
|
|
[Column("USER_ID")]
|
|
public int UserId { get; set; }
|
|
|
|
[Column("REPR_GROUP")]
|
|
public int? RepGroupId { get; set; }
|
|
|
|
[Required]
|
|
[Column("RIGHT_GROUP")]
|
|
public int RightGroupId { get; set; }
|
|
|
|
[Column("REPR_USER")]
|
|
public int? RepUserId { get; set; }
|
|
|
|
[ForeignKey("UserId")]
|
|
public virtual User? User { get; set; }
|
|
|
|
[ForeignKey("RepGroupId")]
|
|
public virtual Group? RepGroup { get; set; }
|
|
|
|
[ForeignKey("RightGroupId")]
|
|
public virtual Group? RightGroup { get; set; }
|
|
|
|
[ForeignKey("RepUserId")]
|
|
public virtual User? RepUser { get; set; }
|
|
}
|
|
} |