using LinqToDB.Mapping; using System; using System.Collections.Generic; using System.Linq; namespace MasaBlazorApp3.Pojo { /// /// /// [Table("order_detail")] public class OrderDetail { /// /// /// /// [PrimaryKey] [Column("id")] public int Id { get; set; } /// /// /// 默认值: NULL /// //[SugarColumn(ColumnName = "order_id")] //public int? OrderId { get; set; } /// /// /// [Column("patient_id")] public string PatientId { get; set; } /// /// /// [Column("order_no")] public string OrderNo { get; set; } /// /// /// [Column("charge_date")] public DateTime ChargeDate { get; set; } /// /// /// 默认值: NULL /// //[SugarColumn(ColumnName = "serial_no")] //public int? SerialNo { get; set; } /// /// /// [Column("drug_id")] public string DrugId { get; set; } [Association(ThisKey = nameof(DrugId), OtherKey = nameof(DrugInfo.DrugId))] public DrugInfo Drug { get; set; } = new(); /// /// /// [Column("quantity")] public int Quantity { get; set; } /// /// /// 默认值: NULL /// [Column("order_unit")] public string OrderUnit { get; set; } /// /// /// 默认值: 1 /// [Column("unit_convercoef")] public int? UnitConvercoef { get; set; } /// /// /// 默认值: NULL /// [Column("set_manu_no")] public string SetManuNo { get; set; } /// /// /// 默认值: NULL /// [Column("set_eff_date")] public string SetEffDate { get; set; } /// /// /// 默认值: NULL /// //[SugarColumn(ColumnName = "price")] //public string Price { get; set; } /// /// /// 默认值: NULL /// //[SugarColumn(ColumnName = "total_price")] //public string TotalPrice { get; set; } /// /// /// 默认值: NULL /// [Column("use_discrip")] public string UseDiscrip { get; set; } /// /// /// 默认值: NULL /// [Column("use_frequ")] public string UseFrequ { get; set; } /// /// /// 默认值: NULL /// [Column("use_once")] public string UseOnce { get; set; } /// /// /// 默认值: NULL /// [Column("use_by")] public string UseBy { get; set; } /// /// /// 默认值: '0' /// [Column("use_self")] public string UseSelf { get; set; } /// /// /// 默认值: NULL /// [Column("use_dosage")] public string UseDosage { get; set; } } }