最新评论
Re:我做的代码生成的工具的思路 (支持.NET2.0) JimHappy#真嗨皮#郑海滨 2010-02-22 00:11
献给楼主一个codesmith下的代码生产工具,
http://www.cnblogs.com/JimHappy/archive/2009/10/27/1590729.html
鼓励
but,VA的Alt+G很完美的实现了
从VC6到ASPX,Alt+G个人认为是不可缺少的
到现在我也是只装一个VA,真的很爽
搂住不妨try一下
:)
我一般用ExtendProperties来存储。
我觉得本来就是基于Table的了,所以就干脆利用Table里面有的东西。
也用PropertyInfo.Set(obj,Value)来设置Entity的值,当然C/S架构的,所以
充分利用Client端的资源。
不过,在1.1上面是存在性能的一些缺憾,但是在2.0,倒是没什么太大的问题。
你可以看看我的代码生成器
Http://wildfish.tigris.org
~~
不过觉得没什么太大的改造余地了,ORM或许会比较好。
Nhibernate如果用在应用服务器上面,的确性能也不错。
到2.0以后俺还没碰过 remoting呢:(
看起来很严重 全面更新工程看似比等M$解决问题更可行
re: You have to read this kenyfun11 2005-10-24 13:30
知不知道哪里有的下?
re: You have to read this didasoft 2005-10-21 13:40
下载这本书大概看了一下,比较理论化
re: All about codes generation Gordon Golden Shining 2005-08-28 01:34
not sure about how nvelociy used...
I am using stringtemplate, which I think very good and easy to use...
they have the concept of stringtemplate group, which like a
AST tree of string template...
group MyCodeGenerationGroup;
ClassGenerator(classname, functions) ::= <<
public class $classname$ : DataAccessBase
{
$functions; separator="\n"$
}
>>
PrepareCommand(storedprocedurename, params, sqlparams) ::= <<
public void PrepareCommand($params; separator=", "$)
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "$storedprocedurename$";
$sqlparams; separator="\n"$
}
>>
paramsGenerator(type, name) ::= "$type$ $name$"
sqlparamsGenerator(paramname) ::= <<
prm = new SqlParameter("$paramname$);
cmd.Parameters.Add(prm);
>>
you see? sort of like recursive.
i'm doing some research in "castle on rails".
in castle way, it likes that:
view Index.vm:
<body>
$name
</body>
controller:
public virtual void Index()
{
this.PropertyBag.Add("name", "your name");
}
it uses the NVelocity view engine~
hehe~
hoping to see your example
About embedded Python, you can try Python for .NET at
http://www.zope.org/Members/Brian/PythonNet/
^_^
actually if use ajax, I would reckon use custom control to be rendered as innerHtml and added to div.
在使用ajax机制callback的情况下,个人感觉不要post到当前页面比较好,否则当前页面的page_load比较混乱,另外,在ajax的情形下原有的.net的mvc机制其实失效了,没有一个比较好的mvc来帮助处理ajax的返回结果造成项刷新一个dropdownlist这样的小功能却要那么多相对来讲比较混的client和server端的代码。正在考虑写一个server端for ajax的mvc框架以简化该过程,感觉多研究下这方面会比较有益~~
so you have to
use Request["dropdownlistname"] to retrieve the value
this is the key for me , Thank you!
Many thanks! :-)
There's also a new video about CoR and Ajax support:
http://www.castleproject.org/movies/CoR2.htm
Cheers!
It's a bug!I think!Thanks to give this!