feat(db): add MaterialHeader EF entity and DbSet mapping\n\n- Map to dbo.MaterialHeader with key and relevant columns.\n- Register DbSet in PepDB and configure string columns as non-Unicode.
This commit is contained in:
73
PepLib.Core/Data/MaterialHeader.cs
Normal file
73
PepLib.Core/Data/MaterialHeader.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
namespace PepLib.Data
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
[Table("MaterialHeader")]
|
||||
public partial class MaterialHeader
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
|
||||
public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string ModifiedBy { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(32)]
|
||||
public string CompanyID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(32)]
|
||||
public string FacilityID { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(64)]
|
||||
public string GroupID { get; set; }
|
||||
|
||||
// Typically numeric-as-string in PEP data; used as material number in other tables
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Material { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string MatGrade { get; set; }
|
||||
|
||||
public byte AutoAddText { get; set; }
|
||||
|
||||
public double Cost { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string Description { get; set; }
|
||||
|
||||
public double Density { get; set; }
|
||||
|
||||
public byte KeepRemnant { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(16)]
|
||||
public string KeepRemnantLogic { get; set; }
|
||||
|
||||
public double Kfactor { get; set; }
|
||||
|
||||
public double MinRemnantArea { get; set; }
|
||||
|
||||
public double MinRemnantCost { get; set; }
|
||||
|
||||
public double MinRemnantSize { get; set; }
|
||||
|
||||
public double MinRemnantWeight { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(254)]
|
||||
public string OriginalMaterialForStack { get; set; }
|
||||
|
||||
public double Thickness { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user