From a35b849ea5891c672c622e41f859feb5c7f3977d Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Sat, 4 May 2024 22:57:02 +0400 Subject: [PATCH] some fix --- Bank/BankDatabaseImplement/Models/Transfer.cs | 1 - Bank/BankDatabaseImplement/Models/Withdrawal.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Bank/BankDatabaseImplement/Models/Transfer.cs b/Bank/BankDatabaseImplement/Models/Transfer.cs index 664d6ce..0d6dee9 100644 --- a/Bank/BankDatabaseImplement/Models/Transfer.cs +++ b/Bank/BankDatabaseImplement/Models/Transfer.cs @@ -18,7 +18,6 @@ namespace BankDatabaseImplement.Models public int Sum { get; set; } [Required] public DateTime TransferTime { get; set; } - [Required] public int? OperationId { get; set; } = null; public virtual Operation? Operation { get; set; } = null; [Required] diff --git a/Bank/BankDatabaseImplement/Models/Withdrawal.cs b/Bank/BankDatabaseImplement/Models/Withdrawal.cs index 839ece2..ee99a44 100644 --- a/Bank/BankDatabaseImplement/Models/Withdrawal.cs +++ b/Bank/BankDatabaseImplement/Models/Withdrawal.cs @@ -16,7 +16,6 @@ namespace BankDatabaseImplement.Models public int Id { get; set; } [Required] public DateTime WithdrawalTime { get; set; } - [Required] public int? RequestId { get; set; } = null; public virtual Request? Request { get; set; } = null; [ForeignKey("WithdrawalId")]