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.

25 lines
582 B

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 ParameterValue
  11. {
  12. [Key]
  13. public int Id { get; set; }
  14. [Required]
  15. [Index]
  16. [Index("IX_UniqueKey", 1, IsUnique=true)]
  17. public int GroupKey { get; set; }
  18. [Required]
  19. [Index("IX_UniqueKey", 2, IsUnique = true)]
  20. public string Value { get; set; }
  21. }
  22. }