16 lines
407 B
C#
16 lines
407 B
C#
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace LawFirmDatabaseImplement.Models
|
|||
|
{
|
|||
|
public class CaseClient
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[Required]
|
|||
|
public int CaseId { get; set; }
|
|||
|
[Required]
|
|||
|
public int ClientId { get; set; }
|
|||
|
public virtual Case Case { get; set; } = new();
|
|||
|
public virtual Client Client { get; set; } = new();
|
|||
|
}
|
|||
|
}
|