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

20 lines
572 B
C#
Raw Normal View History

using BankDataModels.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using BankContracts.BindingModels;
using BankContracts.ViewModels;
namespace BankDatabaseImplement.Models
{
public class DepositCurrency
{
public int Id { get; set; }
[Required]
public int DepositId { get; set; }
[Required]
public int CurrencyId { get; set; }
public virtual Deposit Deposit { get; set; } = new();
public virtual Currency Currency { get; set; } = new();
}
}