Спать
This commit is contained in:
parent
1f91bd744a
commit
ef9678b4be
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user