IAddress: Add IAddress

This commit is contained in:
2023-09-07 13:49:56 +02:00
parent f9d95a48f2
commit de53bfdd2b
3 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,9 @@
using Elwig.Models;
namespace Elwig.Helpers {
public interface IAddress {
string Name { get; }
string Address { get; }
PostalDest PostalDest { get; }
}
}

View File

@ -1,9 +1,10 @@
using Elwig.Helpers;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Elwig.Models {
[Table("member_billing_address"), PrimaryKey("MgNr")]
public class BillingAddr {
public class BillingAddr : IAddress {
[Column("mgnr")]
public int MgNr { get; set; }

View File

@ -7,7 +7,7 @@ using System.Linq;
namespace Elwig.Models {
[Table("member"), PrimaryKey("MgNr")]
public class Member {
public class Member : IAddress {
[Column("mgnr")]
public int MgNr { get; set; }