You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
867 B

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Sevomin.Models
  9. {
  10. public class JobParameter
  11. {
  12. [Key]
  13. public long Id { get; set; }
  14. [Index("IX_JobParameterUniqueIndex", Order=1, IsUnique=true)]
  15. [Required]
  16. public long ParameterId { get; set; }
  17. [Index]
  18. [Index("IX_JobParameterUniqueIndex", Order=2, IsUnique=true)]
  19. [Required]
  20. public long JobId { get; set; }
  21. public string StringValue { get; set; }
  22. public decimal? NumericValue { get; set; }
  23. public byte Moscow { get; set; }
  24. public virtual Parameter Parameter { get; set; }
  25. public virtual Job Job { get; set; }
  26. }
  27. }