随笔分类 -  Code Lib

摘要:上面的方法与下面的方法计算结果相同: System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sourceStr, "MD5").ToLower()),sourceStr是要进行哈希运算的字符串,非Asp. 阅读全文
posted @ 2017-06-03 18:52 Arlar 阅读(3671) 评论(0) 推荐(0)
摘要:using System.Web.Script.Serialization; public class JsonHelper { public static string ObjectToJsonString(T t) { JavaScriptSerializer js = new JavaScriptSerializer(); //序列化方法:... 阅读全文
posted @ 2017-06-01 22:15 Arlar 阅读(299) 评论(0) 推荐(0)
摘要:先看客户端Http请求之HttpWebRequest data是待传入的Http实体主体的内容,例如在进行微信支付统一下单时需要传递给微信端的Xml字符串,不传可以写空字符串"";url是所请求的Http地址,例如https://api.weixin.qq.com/cgi-bin/token?gra 阅读全文
posted @ 2017-06-01 22:02 Arlar 阅读(7881) 评论(0) 推荐(0)
摘要:BaseDAL: EntityDAL: ModelBase: Entity: MyKeyAttribute: DBHelper: 阅读全文
posted @ 2017-05-31 21:49 Arlar 阅读(553) 评论(0) 推荐(0)