Files
elwig/WGneu/Models/Contract.cs
2023-03-14 11:12:19 +01:00

23 lines
546 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace WGneu.Models {
[Table("contract"), PrimaryKey("Vnr")]
public class Contract {
[Column("vnr")]
public int Vnr { get; set; }
[Column("mgnr")]
public int MgNr { get; set; }
[Column("year_from")]
public int YearFrom { get; set; }
[Column("year_to")]
public int? YearTo { get; set; }
[ForeignKey("MgNr")]
public virtual Member Member { get; set; }
}
}