虽然调用存储过程并不难实现,但是在程序中合理的组织代码,能使得程序结构更加的明晰,也更加易于维护。 下面的示例将存储过程的调用分为三部分: 1、为调用存储过程准备各种数据:数据库连…
这个功能在windows上测试安装卸载时,有时会用到 Shell shell = new Shell(); Folder folder = shell.NameSpace(Path…
自定义一个截图函数, public static void Snap(in…
1. 获取绝对文件路径 System.IO.Path.GetFullPath(string path) string fileName = "myfi…
C#连接六类数据库的代码集 本文列出了C#连接Access、SQL Server、Oracle、MySQL、DB2和SyBase六种不同数据库的程序源码和需要注意的点。 1.C#连…
using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…
using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…
using System; using System.Collections.Generic; using System.ComponentModel; using System.…
static class SqlHelper { private static string connStr = ConfigurationManager.ConnectionSt…
public static string GetMD5(string sDataIn) { MD5CryptoServiceProvider md5 = new MD5Crypto…
html5 新特性 <input id="imgsf" type="file" name="imgsf" mult…
C# winform中自动关闭MessageBox对话框 using System; using System.Collections.Generic; using System.…