上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页
摘要: 一、首先下载一个dll,地址:http://pan.baidu.com/share/link?shareid=1628211605&uk=1342867987二、添加到项目中三、添加引用四、前台页面写法如下: 品牌列表 ... 阅读全文
posted @ 2013-08-05 17:22 王洪洪 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1、with(nolock) 在查询表的时候加上它可以增加33%查询效率 例子:SELECT TOP 5 b.UserName,f.issuedDate,r.tktedTime,r.refundSign,r.initDate,f.status from forderform f with(no... 阅读全文
posted @ 2013-07-31 13:31 王洪洪 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1、OOP 实体与数据库字段转换(注意 此时实体字段必须和数据库中查询的字段列名相同) list = ModelExtend.GetByDataTablePart(ds.Tables[0]); /// /// 实体和DataTable都有的数据才回给实体赋值 /... 阅读全文
posted @ 2013-07-16 15:32 王洪洪 阅读(168) 评论(0) 推荐(0) 编辑
摘要: public class FileExercise : System.Web.Services.WebService { [WebMethod] public void HelloWorld() { // 生成临时文件 ... 阅读全文
posted @ 2013-07-10 10:41 王洪洪 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: XmlWriter 表示一个编写器,该编写器提供一种快速、非缓存和只进的方式来生成包含 XML 数据的流或文件。这个就可以不占用内存,将数据放入磁盘中。也就不会出现内存溢出public class FileExercise : System.Web.Services.WebService { [WebMethod] public void HelloWorld() { // 生成临时文件 string tFName = System.IO.Path.GetTempFileName();//@"C:\Re... 阅读全文
posted @ 2013-07-10 10:36 王洪洪 阅读(2231) 评论(0) 推荐(0) 编辑
摘要: string str = ""; DataTable dt=new DataTable(); dt.Columns.Add("name", typeof(System.String)); for (int... 阅读全文
posted @ 2013-07-04 13:29 王洪洪 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1、with(nolock) 在查询表的时候加上它可以增加33%查询效率例子:SELECT TOP 5 b.UserName,f.issuedDate,r.tktedTime,r.refundSign,r.initDate,f.status from forderform f with(nolock)2、sql中一列包含另一列3、sql中一列包含另一列(高效率)4、通过sql自带系统表查询某个库里的所以表SELECT * FROM [B2B-Baitour]..sysobjects WITH (nolock) WHERE xtype='U'5、显示磁盘秘密:DBCC SHOWC 阅读全文
posted @ 2013-07-04 13:27 王洪洪 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1、OOP 实体与数据库字段转换(注意 此时实体字段必须和数据库中查询的字段列名相同)list = ModelExtend.GetByDataTablePart(ds.Tables[0]); /// /// 实体和DataTable都有的数据才回给实体赋值 /// /// /// /// public static List GetByDataTablePart(this DataTable data) where T : class, new() { if (d... 阅读全文
posted @ 2013-07-04 13:26 王洪洪 阅读(263) 评论(0) 推荐(0) 编辑
摘要: c# post请求发送数据 /// /// POST请求 /// /// 请求地址 /// 请求值 /// 编码格式 /// public string GetHttpPostResponse(string url, string val, Enc... 阅读全文
posted @ 2013-06-28 13:43 王洪洪 阅读(3559) 评论(0) 推荐(0) 编辑
摘要: Parallel这个类可以调度你的电脑中的所有CPU共同运算。我做了一个并行运算与普通运算的对比,并记录了时间并行运算方法:string str = ""; DataTable dt=new DataTable(); dt.Columns.Add("name", typeof(System.String)); for (int i = 0; i (rules, (dr) => { str += dr[0]; str += d... 阅读全文
posted @ 2013-06-26 10:14 王洪洪 阅读(695) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页