summarize bank accounts

This commit is contained in:
hydrant
2019-05-13 20:06:19 +02:00
parent 61f049ae56
commit a21e7f887a
10 changed files with 1499 additions and 135 deletions

View File

@@ -13,22 +13,17 @@ using System.Linq;
namespace ReallifeGamemode.Server.Entities
{
public class UserBankAccount : IBankAccount
public class UserBankAccount : BankAccount, IBankAccount
{
[NotMapped]
private int _balance;
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[ForeignKey("User")]
public int UserId { get; set; }
public User User { get; set; }
[StringLength(12)]
public string Bic { get; set; }
[StringLength(32)]
public string Iban { get; set; }
public int Balance
public override int Balance
{
get => _balance;
set
@@ -40,6 +35,5 @@ namespace ReallifeGamemode.Server.Entities
}
}
}
public bool Active { get; set; }
}
}