致力于技术进步

专注于编程艺术

博客园 首页 新随笔 联系 订阅 管理

2009年12月14日 #

摘要: 无聊在网上百度了一些代码,发现了个不错的框架公布代码Jimmy.Net ORM 框架核心代码DOWN下来已经传到我的博客文件中,有空好好研究下 阅读全文
posted @ 2009-12-14 19:44 stephen·周 阅读(343) 评论(0) 推荐(1) 编辑

摘要: using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Xml;using System.Data;using System.IO;namespace Ahedu.Common{ /// <summary> /// 提供操作XML文件的类 ... 阅读全文
posted @ 2009-12-14 19:11 stephen&amp;#183;周 阅读(237) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using log4net;namespace Ahedu.Common{ public class LogHelper : ILog { private static readonly log4net.ILog _log = LogM... 阅读全文
posted @ 2009-12-14 19:10 stephen&amp;#183;周 阅读(595) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Drawing;using System.Diagnostics;using System.IO;using System.Reflection;using System.Runtime.InteropServices;using System.Security.Cryptography;using System.Text;using Syste... 阅读全文
posted @ 2009-12-14 19:08 stephen&amp;#183;周 阅读(334) 评论(0) 推荐(0) 编辑

摘要: C#操作文件及目錄的一個類2009年05月22日 星期五 16:41C#操作文件及目錄using System;using System.IO;using System.Xml;namespace Zhzuo{ /// <summary> /// FileDirectoryUtility 类,方法不包含异常处理 /// </summary> public class Fil... 阅读全文
posted @ 2009-12-14 17:57 stephen&amp;#183;周 阅读(205) 评论(0) 推荐(0) 编辑

摘要: C# 操作INI文件类 先Show示例:private void TestINI_Load(object sender, System.EventArgs e){//创建一个INIFile对象,参数为文件路径,如果不存在它会自动创建的INIFile inf=new INIFile(@"D:\工作目录\VSPP\VSPPServer\bin\Debug\COMPILED.INI");//显示INI配... 阅读全文
posted @ 2009-12-14 17:49 stephen&amp;#183;周 阅读(237) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Configuration;namespace ROYcms.Common{/// <summary>/// web.config操作类 /// 李天平 /// 2004.8/// </summary>public sealed class ConfigHelper{/// <summary>/// 得到App... 阅读全文
posted @ 2009-12-14 17:48 stephen&amp;#183;周 阅读(211) 评论(0) 推荐(0) 编辑

摘要: 加密/解密操作类using System;using System.IO;using System.Security.Cryptography;using System.Text; /**//// <summary> /// Security加密/解密 /// </summary> public class Security { private static readonl... 阅读全文
posted @ 2009-12-14 17:42 stephen&amp;#183;周 阅读(334) 评论(0) 推荐(0) 编辑

摘要: Discuz!NT 2.6带了一个FTP类,位于Discuz.Common\FTP.cs,使用它可以非常的方便的进行文件上传、下载操作以及其他常规文件(夹)操作。下边为该FTP类完整内容: 程序代码using System;using System.IO;using System.Net;using System.Net.Sockets;using System.Text;using System... 阅读全文
posted @ 2009-12-14 17:38 stephen&amp;#183;周 阅读(267) 评论(0) 推荐(0) 编辑

摘要: C#采集数据类 usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingS... 阅读全文
posted @ 2009-12-14 17:35 stephen&amp;#183;周 阅读(272) 评论(0) 推荐(0) 编辑

摘要: using System;using System.IO;using System.Text;using System.Data;namespace DbConvert{/*********************************************************************************** * 功能说明:文件操作类* 作者:* 版本:* * ****... 阅读全文
posted @ 2009-12-14 17:29 stephen&amp;#183;周 阅读(204) 评论(0) 推荐(0) 编辑

摘要: 如何获得数据库里所有表的名字(SQL+C#) (转)收藏。。。 1如何获得数据库里所有表的名字23平时我们操作比较多的都是表里的数据,也许突然有一天会需要把所有表的名字都列出来看一看——比如,你的论坛是按每个版块一个表来管理的,这时候你要在首页列出各版块的名字。应该怎么办呢?45肯定得用SELECT吧……但我们平时使用SELECT操作的数据都是表里的... 阅读全文
posted @ 2009-12-14 17:26 stephen&amp;#183;周 阅读(226) 评论(0) 推荐(0) 编辑

摘要: 1. 一个有益的实验。在Microsoft SQL Server Management Studio中建立一数据库查询。SQL语句如下:select * from sys.databases你会看到你需要的信息。现在估计该问题你已经知道怎么解决了,当然其中的道理估计你也明白,这里就不详述。2. 一个实例。代码如下: public string ConnectionString ...{ get ... 阅读全文
posted @ 2009-12-14 17:20 stephen&amp;#183;周 阅读(428) 评论(0) 推荐(0) 编辑

摘要: xml文件格式view plaincopy to clipboardprint?<?xml version="1.0" encoding="utf-8"?> <messageList> <message id="1"> <Name>熊猫</Name> <QQ>123456</QQ> <Email>... 阅读全文
posted @ 2009-12-14 17:02 stephen&amp;#183;周 阅读(286) 评论(0) 推荐(0) 编辑