17 lines
412 B
C#
17 lines
412 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Elwig.Models {
|
|
[Table("wine_attribute"), PrimaryKey("AttrId")]
|
|
public class WineAttr {
|
|
[Column("attrid")]
|
|
public string AttrId { get; set; }
|
|
|
|
[Column("name")]
|
|
public string Name { get; set; }
|
|
|
|
[Column("kg_per_ha")]
|
|
public int KgPerHa { get; set; }
|
|
}
|
|
}
|