TestTableInfo.cs 878 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using Tede.Data.Utils;
  3. namespace Tede.Data.Tests.Mocks
  4. {
  5. [DataTable("TestTable")]
  6. public class TestTableInfo : Entity
  7. {
  8. [DataColumn(Length = 100)]
  9. public string TypeVarChar100 { get; set; }
  10. [DataColumn]
  11. public string TypeVarCharDefault { get; set; }
  12. [DataColumn]
  13. public bool TypeBool { get; set; }
  14. [DataColumn(Text = true)]
  15. public string Content { get; set; }
  16. [DataColumn]
  17. public int Num { get; set; }
  18. [DataColumn]
  19. public decimal Currency { get; set; }
  20. [DataColumn]
  21. public DateTime? Date { get; set; }
  22. [DataColumn]
  23. private string IsLockedOut { get; set; }
  24. public bool Locked
  25. {
  26. get => Utilities.ToBool(IsLockedOut);
  27. set => IsLockedOut = value.ToString();
  28. }
  29. }
  30. }