05 2013 档案

摘要:static void GetServiceState() { /* 描述: 启动服务 * 添加引用: using System.ServiceProcess; using System.Management; */ const string ServiceName = "SQLSERVERAGENT"; Console.WriteLine(string.Format("启动服务:{0}"... 阅读全文
posted @ 2013-05-31 16:47 Rhythmk 阅读(145) 评论(0) 推荐(0)
摘要:配置信息: JDK 1.6 Hibernate 3.3 mysql 5.6项目结构如下:hibernate.cfg.xml文件:<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd& 阅读全文
posted @ 2013-05-10 13:38 Rhythmk 阅读(286) 评论(0) 推荐(0)
摘要:1.站点地图构建: /// <summary> /// 实现XML格式 站点地图输出 /// By:rhythmk.cnblogs.com /// </summary> public class SitemapResult : ActionResult { public SitemapResult(Sitemap sitemap) { this.Sitemap = sitemap; } public Sitemap Sitemap { get; private set; } ... 阅读全文
posted @ 2013-05-09 17:02 Rhythmk 阅读(483) 评论(0) 推荐(0)

Rhythmk 个人笔记