I try to write a tool to generate entity code and *.hbm.xml file. All has finish except one thing generate struct to database server.
I thank two method can work
1.build entity project,copy dll to tool work path,addXmlFile(*.hbm.xml) or addClass(Type)
2.use AppDomain,build entity in memory,add generator code of tool to AppDomain,addXmlFile(hbm.xml) ...
The 1 can't control project return error message,and copy other dll file in work path is bad idea. 2 is a large subject to me at this time. Has the three method?
thanks.
|