在CodeSmith中,使用类似如下的方式可以让属性SourceTable以选择数据库中数据表的方式得到其值:
<%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Category="Context" Description="Table to get the data from." %>
...

请问:如果希望为某属性选择一组数据表,是否有什么好的办法?请各位达人不吝赐教。

--补充:
有一种替代的办法是使用CodeSmith.CustomProperties.StringCollection,但是用起来总感觉不大爽。如:
<%@ Property Name="TableNameList" Type="CodeSmith.CustomProperties.StringCollection" Optional="False" Category="Custom" Description="请指定数据表名称列表。"%>

相关文章:

  • 2021-06-16
  • 2022-02-10
  • 2022-02-18
  • 2021-06-18
  • 2022-02-19
  • 2021-11-25
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2021-09-12
  • 2021-09-04
  • 2021-09-14
  • 2021-10-22
  • 2022-12-23
  • 2021-07-27
相关资源
相似解决方案