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

20 lines
564 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 ClientDeposit
{
public int Id { get; set; }
[Required]
public int ClientId { get; set; }
[Required]
public int DepositId { get; set; }
public virtual Client Client { get; set; } = new();
public virtual Deposit Deposit { get; set; } = new();
}
}