Models: Add Entities/ folder
This commit is contained in:
		
							
								
								
									
										22
									
								
								Elwig/Models/Entities/AT_Kg.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Elwig/Models/Entities/AT_Kg.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
using Microsoft.EntityFrameworkCore;
 | 
			
		||||
using System.ComponentModel.DataAnnotations.Schema;
 | 
			
		||||
 | 
			
		||||
namespace Elwig.Models.Entities {
 | 
			
		||||
    [Table("AT_kg"), PrimaryKey("KgNr")]
 | 
			
		||||
    public class AT_Kg {
 | 
			
		||||
        [Column("kgnr")]
 | 
			
		||||
        public int KgNr { get; private set; }
 | 
			
		||||
 | 
			
		||||
        [Column("gkz")]
 | 
			
		||||
        public int Gkz { get; private set; }
 | 
			
		||||
 | 
			
		||||
        [Column("name")]
 | 
			
		||||
        public string Name { get; private set; }
 | 
			
		||||
 | 
			
		||||
        [ForeignKey("Gkz")]
 | 
			
		||||
        public virtual AT_Gem Gem { get; private set; }
 | 
			
		||||
 | 
			
		||||
        [InverseProperty("AtKg")]
 | 
			
		||||
        public virtual WbKg WbKg { get; private set; }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user