bank account refactor

This commit is contained in:
hydrant
2020-03-15 21:33:04 +01:00
parent 75e26b8e8a
commit 92c054c90c
30 changed files with 2088 additions and 300 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace ReallifeGamemode.Database
{
public abstract class BankAccountHolder<T> where T : class, IBankAccount, new()
{
public abstract string BankAccountName { get; }
[ForeignKey(nameof(BankAccountId))]
public virtual T BankAccount { get; set; }
public virtual int? BankAccountId { get; set; }
}
}