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

19 lines
585 B
C#

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