Спать

This commit is contained in:
Artyom_Yashin 2024-04-28 23:59:47 +04:00
parent 1f91bd744a
commit ef9678b4be
3 changed files with 10 additions and 5 deletions

View File

@ -18,6 +18,7 @@ namespace BankDatabaseImplement.Models
public int Sum { get; set; }
[Required]
public DateTime OperationTime { get; set; }
[Required]
public int? SenderCardId { get; set; } = null;
public virtual Card? SenderCard { get; private set; }
[Required]

View File

@ -22,12 +22,12 @@ namespace BankDatabaseImplement.Models
public virtual Operation? Operation { get; set; } = null;
[Required]
public int SenderAccountId { get; set; }
public virtual Account? SenderAccount { get; set; } = null;
[Required]
public int RecipientAccountId { get; set; }
public virtual Account? RecipientAccount { get; set; } = null;
public virtual Account? SenderAccount { get; set; }
[Required]
public int RecipientAccountId { get; set; }
public virtual Account? RecipientAccount { get; set; }
public static Transfer? Create(TransferBindingModel model)
public static Transfer? Create(TransferBindingModel model)
{
if (model == null) return null;
return new Transfer

View File

@ -7,6 +7,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>