ConfigEntry.cs 407 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. using Microsoft.EntityFrameworkCore;
  6. namespace BanTur.Core.Entity
  7. {
  8. [Index(nameof(Key), IsUnique = true)]
  9. public class ConfigEntry
  10. {
  11. [Key]
  12. public string Key { get; set; }
  13. public string Value { get; set; }
  14. public string Type { get; set; }
  15. }
  16. }