随笔分类 -  C#

摘要:public void ServiceOrderExport(string data) { StringBuilder sb = new StringBuilder(); Type entityType = null; ; ... 阅读全文
posted @ 2014-10-25 22:16 dapeng888 阅读(530) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Reflection;using System.Collections;us... 阅读全文
posted @ 2014-10-25 22:15 dapeng888 阅读(468) 评论(0) 推荐(0)
摘要:/// /// 夜班津贴统计导出 /// public void ExportOtStat(string data) { var input = data.DeserializeObject(); ... 阅读全文
posted @ 2014-10-25 22:14 dapeng888 阅读(1340) 评论(0) 推荐(0)
摘要:异常问题1: 如 机构编号 00001222 导出城CSV后,前面的四个0000不显示了,解决办法 输出格式变为 ="00001222"异常问题2:PPMABAT01:/MABATAPS/usr/ma_batas >CH_INS_ID_CD='00105840' and trans_dt='2... 阅读全文
posted @ 2014-10-25 22:13 dapeng888 阅读(503) 评论(0) 推荐(0)
摘要:原文地址:http://zhidao.baidu.com/question/107168202.htmlSELECT COLLATIONPROPERTY('Chinese_PRC_Stroke_CI_AI_KS_WS', 'CodePage') 下面是查询结果: 936 简体中文GBK 950 繁... 阅读全文
posted @ 2014-10-25 21:14 dapeng888 阅读(5676) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/selfteam/p/4030225.html#3048772?ADUIN=7783008&ADSESSION=1413941027&ADTAG=CLIENT.QQ.5359_.0&ADPUBNO=26397论C#逼格手册水文。如何让自己的代码... 阅读全文
posted @ 2014-10-22 17:45 dapeng888 阅读(154) 评论(0) 推荐(0)
摘要:原文地址:http://blog.csdn.net/cdefg198/article/details/8315438万能框架:http://www.sufeinet.com/forum.php?mod=viewthread&tid=2002/// /// 类说明:HttpHelps类,用来实现Htt... 阅读全文
posted @ 2014-10-15 13:31 dapeng888 阅读(442) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace HbTu... 阅读全文
posted @ 2014-10-13 16:01 dapeng888 阅读(777) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/frankofgdc/p/3600090.htmlEntity Framework学习笔记——错误汇总之前的小项目做完了,到了总结经验和更新学习笔记的时间了。开始正题之前先啰嗦一下,对之前的学习目标进行一个调整:“根据代码生成表”与“生成数据库... 阅读全文
posted @ 2014-10-05 10:04 dapeng888 阅读(252) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/buzz/archive/2009/04/23/1442159.htmlusing System;using System.Collections.Generic;using System.Linq;using System.Text;usin... 阅读全文
posted @ 2014-08-14 10:33 dapeng888 阅读(176) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/serenatao/archive/2012/09/05/2672621.html这是一个用c#控制台程序下, 用XmlDocument 进行XML操作的的例子,包含了查询、增加、修改、删除、保存的基本操作。较完整的描述了一个XML的整个操作流... 阅读全文
posted @ 2014-08-13 16:16 dapeng888 阅读(253) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/zery/p/3362480.html一 前言先来了解下操作XML所涉及到的几个类及之间的关系 如果大家发现少写了一些常用的方法,麻烦在评论中指出,我一定会补上的!谢谢大家* 1 XMLElement 主要是针对节点的一些属性进行操作* 2 X... 阅读全文
posted @ 2014-08-13 15:46 dapeng888 阅读(255) 评论(0) 推荐(0)
摘要:用Resharper的同学都知道,如果你写了一个私有函数,这个函数没有访问类里面的其他参数和方法,那么它建议你标记这个方法为私有静态方法,提示是这样的:值得这样做吗?看看微软的建议:After you mark the methods as static, the compiler will emi... 阅读全文
posted @ 2014-07-10 18:02 dapeng888 阅读(4727) 评论(0) 推荐(0)
摘要:这是一个经常被时时提出来的问题,很多时候我们以为理解了、懂了,但深究一下,我们却发现并不懂。方法是我们每天都在写得,很多程序员大多都使用实例化方法,而很少使用静态方法,问原因也说不出来所以然,或者简单的回答两者定义的区别,静态方法不需要new就可以使用 实例化方法需要new了以后才可以使用。。。。我... 阅读全文
posted @ 2014-07-10 17:24 dapeng888 阅读(281) 评论(0) 推荐(0)
摘要:staticvoidMain(string[]args){Listlist=newList();GoodsInfog1=newGoodsInfo();g1.GoodsPriceRangeName="200~399";list.Add(g1);GoodsInfog2=newGoodsInfo();g1... 阅读全文
posted @ 2014-05-25 20:08 dapeng888 阅读(3492) 评论(0) 推荐(0)
摘要:var res = Request.CreateResponse(HttpStatusCode.OK, file); res.Content.Headers.ContentType = new MediaTypeHeaderValue(... 阅读全文
posted @ 2014-05-16 18:12 dapeng888 阅读(3271) 评论(0) 推荐(0)
摘要:System.Data.Entity.DbFunctions.DiffDays(cs.StartTime.Value,DateTime.Now) == 0//只获取当天ORXX.StartTime.Value.Date.Equals(DateTime.Now.Date)//只获取当天 阅读全文
posted @ 2014-05-16 18:10 dapeng888 阅读(15472) 评论(1) 推荐(1)
摘要:原文:http://hi.baidu.com/guodong828/blog/item/c78fc23f847314cb7d1e7193.html单问号---用于给变量设初值的时候,给变量(int类型)赋值为null,而不是0;双问号---用于判断并赋值,先判断当前变量是否为null,如果是就可以赋... 阅读全文
posted @ 2014-05-13 14:45 dapeng888 阅读(206) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/qq731109249/archive/2012/10/28/2743867.htmlusing System;using System.Collections.Generic;using System.Dynamic;using System... 阅读全文
posted @ 2014-04-25 14:39 dapeng888 阅读(135) 评论(0) 推荐(0)
摘要:原文地址:http://blog.csdn.net/ichaos/archive/2008/01/20/2054377.aspxSOA的概念是Gartner在1996年提出来的,并于2002年12月进一步提出SOA是“现代应用开发领域最重要的课题”。从Gartner的观点来看,SOA是一种新的企业应... 阅读全文
posted @ 2014-04-24 17:44 dapeng888 阅读(264) 评论(0) 推荐(0)