Subsonic问题,是否可以在运行时执行模板?
在问我的问题之前,我不得不说亚音速是很棒的工具,我真的很喜欢它。 我有一个在运行时本身创建域层的应用程序。我的意思是它有可定制的实体,当添加的实体或任何实体模式更改时,我的模型层会根据更改的数据库在运行时再次编译。
我想知道,是否可以在运行时执行亚音速模板,或者当用户更改实体模式或向应用程序添加新实体时,它可以再次自动生成模型层吗?或者如何在 Subsonic 运行时触发模板?
谢谢
Before ask my question, i have to say that subsonic is wonderfull tool, i realy like it.
I have an application which is createg domain layer during the runtime itself. I mean It has got customizable entites and when the entity added or any entity schema changed my model layer compiled again in the runtime according to changed database.
I'm wondering that, is it possible to execute subsonic templates during the runtime or when the user changed enetity schema or add to new entity to the application can it automatically generate the model layer again ? or how to trigger the template during the runtime of Subsonic ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您对模板进行一些修改,则可以使用 TextTransform.exe 命令行工具生成 SubSonic 类,如以下答案中所述:
Visual Web Developer Express 中的 SubSonic ASP.NET MVC 示例
然后,当用户修改架构。
If you make some modifications to the templates you can use the TextTransform.exe command line tool to generate SubSonic classes as described in the following answer:
SubSonic ASP.NET MVC sample in Visual Web Developer Express
You could then automate the execution of the commandline when your user modifies the schema.