Currency.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. using Abp.Domain.Entities;
  9. namespace ShwasherSys.BasicInfo
  10. {
  11. [Table("Currency")]
  12. public class Currency:Entity<string>
  13. {
  14. public const int CurrencyNameMaxLength = 20;
  15. public const int UserIdLastModMaxLength = 20;
  16. [StringLength(CurrencyNameMaxLength)]
  17. public string CurrencyName { get; set; }
  18. public DateTime? TimeCreated { get; set; }
  19. public DateTime? TimeLastMod { get; set; }
  20. [StringLength(UserIdLastModMaxLength)]
  21. public string UserIDLastMod { get; set; }
  22. }
  23. [Table("CurrencyExchangeRate")]
  24. public class CurrencyExchangeRate : Entity<int>
  25. {
  26. public const int CurrencyNameMaxLength = 20;
  27. public const int CurrencyIdMaxLength = 20;
  28. public const int UserIdLastModMaxLength = 20;
  29. [StringLength(CurrencyIdMaxLength)]
  30. public string FromCurrencyId { get; set; }
  31. [StringLength(CurrencyIdMaxLength)]
  32. public string ToCurrencyId { get; set; }
  33. [DecimalPrecision(scale:4)]
  34. public decimal? ExchangeRate { get; set; }
  35. public DateTime? TimeCreated { get; set; }
  36. public DateTime? TimeLastMod { get; set; }
  37. [StringLength(UserIdLastModMaxLength)]
  38. public string UserIDLastMod { get; set; }
  39. }
  40. }