Models: Add Entities/ folder
This commit is contained in:
32
Elwig/Models/Entities/AT_PlzDest.cs
Normal file
32
Elwig/Models/Entities/AT_PlzDest.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using IndexAttribute = Microsoft.EntityFrameworkCore.IndexAttribute;
|
||||
|
||||
namespace Elwig.Models.Entities {
|
||||
[Table("AT_plz_dest"), PrimaryKey("Id"), Index("Plz", "Okz", IsUnique = true)]
|
||||
public class AT_PlzDest {
|
||||
[Column("plz")]
|
||||
public int Plz { get; private set; }
|
||||
|
||||
[Column("okz")]
|
||||
public int Okz { get; private set; }
|
||||
|
||||
[Column("country")]
|
||||
public int CountryNum { get; private set; }
|
||||
|
||||
[Column("id")]
|
||||
public string Id { get; private set; }
|
||||
|
||||
[Column("dest")]
|
||||
public string Dest { get; private set; }
|
||||
|
||||
[ForeignKey("Plz")]
|
||||
public virtual AT_Plz AtPlz { get; private set; }
|
||||
|
||||
[ForeignKey("Okz")]
|
||||
public virtual AT_Ort Ort { get; private set; }
|
||||
|
||||
[ForeignKey("CountryNum")]
|
||||
public virtual Country Country { get; private set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user