using System.ComponentModel.DataAnnotations; using BankDataModels.ProxyModels; namespace BankDatabaseImplement.Models { public class OperationByPurchase : OperationByPurchaseModel { [Required] public Operation? Operation { get; private set; } [Required] public Purchase? Purchase { get; private set; } [Required] public List? Payments { get; private set; } } }