CourseWork_Bank/Bank/BankDatabaseImplement/Models/CurrencyPayment.cs

21 lines
540 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankDatabaseImplement.Models
{
public class CurrencyPayment
{
public int Id { get; set; }
[Required]
public int CurrencyId { get; set; }
[Required]
public int PaymentId { get; set; }
public virtual Currency Currency { get; set; } = new();
public virtual Payment Payment { get; set; } = new();
}
}