摘要: using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO;namespace HostConsole{ class Program { static void Main(string[] args) { if (HttpListener.IsSupported) { HttpListener listener = new HttpListener(... 阅读全文
posted @ 2012-03-29 23:20 Soar、毅 阅读(995) 评论(1) 推荐(2) 编辑
摘要: 相信使用动软代码生成器生成三层的人不在少数,三层中一个必不可少的功能就是把DataSet转换为实体,虽然动软提供的有现成的模版,但是仍然觉得不够强大。于是自己写了一个模版用来生成实体转换器。代码如下:<#@ template language="c#" HostSpecific="True" #><#@ output extension= ".cs" #><# TableHost host = (TableHost)(Host); string DbParaHead=host.DbParaHead; st 阅读全文
posted @ 2012-03-29 20:51 Soar、毅 阅读(851) 评论(1) 推荐(2) 编辑