- 授权协议: GPL
- 开发语言: C# .NET
- 操作系统: Windows
- 软件首页: http://bbs.xyuu.net/dispbbs.asp?boardid=12&Id=36
软件介绍
模板驱动机制的C#.net模板引擎,含数据库端读取
最初级的一个版本,已经比较灵活.可通过对xml标签的配置调用数据库中存储过程,实现内容的显示;
以后会一步步继续完善;
xml说明:
labels节点下是标签列表;
sqlcommand是数据库中的存储过程名;
sqlparameter存储过程参数,可多个;
loopstr循环的格式化数据库输出;
parent父标签;
例子中有videolist标签,所以在模板中插入$videolist$即可输出数据库内容;
下一步工作:
1.标签的嵌套及递归;
2.标签对多个loopstr的支持;
3.标签的数据映射;
随便找个数据库,然后在里边建立一个存储过程
然后
以下内容为程序代码:
CREATE Procedure videolist
@classid int
as
begin transaction
select top 10 * from [tablename]
if @@error=0
commit transaction
else
rollback transaction
return
GO
CREATE Procedure videolist
@classid int
as
begin transaction
select top 10 * from [tablename]
if @@error=0
commit transaction
else
rollback transaction
return
GO
把tablename改为你要查的表的名字就可以了,不限制数据结构.
如果你也是一个开发人员,且愿意与我一起完善该引擎,可将修改后的代码再此跟帖;
Introduction to Computation and Programming Using Python
John V. Guttag / The MIT Press / 2013-7 / USD 25.00
This book introduces students with little or no prior programming experience to the art of computational problem solving using Python and various Python libraries, including PyLab. It provides student......一起来看看 《Introduction to Computation and Programming Using Python》 这本书的介绍吧!
