PIbd-23_Elatomtsev_L.K._Cou.../Bank/BankDatabaseImplement/Models/ClientProgram.cs

18 lines
548 B
C#

using BankDataModels.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using BankContracts.BindingModels;
using BankContracts.ViewModels;
namespace BankDatabaseImplement.Models
{
public class ClientProgram
{
public string ClientSnils { get; set; } = string.Empty;
[ForeignKey("ClientSnils")]
public virtual Client Client { get; set; } = null!;
public int ProgramId { get; set; }
public virtual Program Program { get; set; } = null!;
}
}