Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- publicclass CustomerContracts
- {
- [Key, Column("ItemId")] //This change the name of the column when you are using migration. If you have a form created already, you have to change the connection in the for to aim the new column name.
- public int ItemId { get; set; }
- public string Description { get; set; }
- public string CustomerRef { get; set; }
- public int ContractTypeId { get; set; }
- public DateTime StartDate { get; set; }
- public DateTime EndDate { get; set; }
- public bool isActive { get; set; }
- [DecimalPrecision(18, 2)]
- public decimal Price { get; set; }
- }
Add Comment
Please, Sign In to add comment