Files
reallife-gamemode/ReallifeGamemode.Database/BankAccountHolder.cs
2020-03-15 21:36:14 +01:00

18 lines
446 B
C#

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; }
}
}