Files
webdoorcreator/WebDoorCreator.Data/DbModels/UserRolesModel.cs
T
2023-03-10 16:47:26 +01:00

22 lines
587 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebDoorCreator.Data.DbModels
{
public class UserRolesModel
{
public string UserId { get; set; } = "";
public string RoleId { get; set; } = "";
[ForeignKey("UserId")]
protected virtual UsersModel? UsersNav { get; set; }
[ForeignKey("RoleId")]
protected virtual RolesModel? RolesNav { get; set; }
}
}