xiaowei-blog

导航

2015年1月12日 #

Paging

该文被密码保护。 阅读全文

posted @ 2015-01-12 20:37 xiaowei-blog 阅读(1) 评论(0) 推荐(0)

2015年1月7日 #

事务使用测试结论

摘要: /* * 事务使用测试结论: * 1.开始事务前,数据库必须是打开状态; * 2.事务作用于DbCommand命令,因此,开启的事务就必须在执行事务操作之前对DbCommand实例指定事务; * * */如果不满足上... 阅读全文

posted @ 2015-01-07 00:13 xiaowei-blog 阅读(323) 评论(0) 推荐(0)

2014年12月26日 #

Enum枚举2

摘要: //1.MyEnum: textBox2.Text = "MyEnumTest:"; //>>>1.获得枚举类型的文字描述:textBox2.Text += Environment.NewLine + EnumDescription.GetEnumText(typeof(MyEnum));//>... 阅读全文

posted @ 2014-12-26 13:43 xiaowei-blog 阅读(148) 评论(0) 推荐(0)

2014年12月25日 #

Enum枚举

摘要: 1.定义enum orientation :byte { north=1, south=2, east=3, west=4 }2.使用//定义enum orientation myOrientation = orientation.east; System.Console.WriteLine(m... 阅读全文

posted @ 2014-12-25 16:50 xiaowei-blog 阅读(124) 评论(0) 推荐(0)

2014年12月19日 #

sqlserver数据库存取图片

摘要: public void SaveImage(string MID, OpenFileDialog openF)//将图片以二进制存入数据库中 { string strimg = openF.FileName.ToString(); //记录图片的所在路径 FileStream fs = new F... 阅读全文

posted @ 2014-12-19 15:50 xiaowei-blog 阅读(375) 评论(0) 推荐(0)

2014年12月18日 #

sqlserver数据库操作公共类DBOperate

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text;using System.Data.SqlClient; using System.Data; using System.Wind... 阅读全文

posted @ 2014-12-18 16:07 xiaowei-blog 阅读(364) 评论(0) 推荐(0)

2014年12月17日 #

SqlParamsTool

摘要: /// /// sql参数封装类。 /// 可以用于设置sql语句动态参数。 /// class SqlParamsTool { private List paramList = new List();//sql参数集合,用于保存设置的参数 private static SqlPar... 阅读全文

posted @ 2014-12-17 16:45 xiaowei-blog 阅读(179) 评论(0) 推荐(0)

sqlserver数据库 -- SqlParameter使用

摘要: 查看:public sealed class SqlParameterCollection : DbParameterCollection类//1。定义封装类class Param { private List paramList=new List(); public SqlParameter[] ... 阅读全文

posted @ 2014-12-17 12:22 xiaowei-blog 阅读(788) 评论(0) 推荐(0)

sqlserver 数据库连接状态判断

摘要: /// /// 打开数据库 /// public void OpenCon() { if(conn.State!=ConnectionState.Open) conn.Open(); } /// /// 关闭数据库 /// public void CloseCon() { if(conn.... 阅读全文

posted @ 2014-12-17 12:14 xiaowei-blog 阅读(413) 评论(0) 推荐(0)

水晶报表2

摘要: //报表路径srgstring strg = Application.StartupPath.ToString(); strg = strg.Substring(0, strg.LastIndexOf("\\")); strg = strg.Substring(0, strg.LastIndexOf... 阅读全文

posted @ 2014-12-17 11:15 xiaowei-blog 阅读(80) 评论(0) 推荐(0)

欢 迎 大 家光 临 我 的 个 人 博 客 !