TableModel.cs 634 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OTSModelSharp.DTLBase
  7. {
  8. [Serializable]
  9. public class TableModel
  10. {
  11. public TableModel()
  12. {
  13. columns = new List<ColumnDefine>();
  14. }
  15. public string TableName { set; get; }
  16. public List<ColumnDefine> columns { set; get; }
  17. }
  18. [Serializable]
  19. public class ColumnDefine
  20. {
  21. public string ColumName { set; get; }
  22. public ColumnType ColumType { set; get; }
  23. public bool IsPrimarykey { set; get; }
  24. }
  25. }