关于CodeSmith中模板的属性编辑...

在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="请指定数据表名称列表。"%>
posted @ 2007-01-11 10:31  BlueFly  阅读(495)  评论(1编辑  收藏  举报