Guest User

Untitled

a guest
Apr 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. publicclass CustomerContracts
  2. {
  3. [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.
  4.  
  5. public int ItemId { get; set; }
  6.  
  7. public string Description { get; set; }
  8.  
  9. public string CustomerRef { get; set; }
  10.  
  11.  
  12. public int ContractTypeId { get; set; }
  13.  
  14. public DateTime StartDate { get; set; }
  15.  
  16. public DateTime EndDate { get; set; }
  17.  
  18. public bool isActive { get; set; }
  19. [DecimalPrecision(18, 2)]
  20. public decimal Price { get; set; }
  21.  
  22. }
Add Comment
Please, Sign In to add comment