04 2016 档案

摘要:public class BaseReq { public String UserId { get; set; } public BaseReq() { } } public abstract class CommonReq:BaseReq { private String TransNo { ge 阅读全文
posted @ 2016-04-28 10:09 zslm___ 阅读(648) 评论(0) 推荐(0) 编辑
摘要:public abstract class CommonReq { private String TransNo { get; set; } public String SubmitData { get; set; } private String Sign { get; set; } public 阅读全文
posted @ 2016-04-28 10:06 zslm___ 阅读(555) 评论(0) 推荐(0) 编辑
摘要:public class CommonReq { private String TransNo { get; set;} public String SubmitData { get; set; } private String Sign { get; set; } public String En 阅读全文
posted @ 2016-04-28 10:00 zslm___ 阅读(1676) 评论(0) 推荐(0) 编辑
摘要:controller 中 public class Query { public string ShopId { get; set; } public string TaskAccessId { get; set; } public Query() { ShopId = ""; TaskAccess 阅读全文
posted @ 2016-04-26 21:40 zslm___ 阅读(146) 评论(0) 推荐(0) 编辑
摘要:https://github.com/MSOpenTech/redis/releases下载 Redis伴侣Redis Desktop Manager:http://redisdesktop.com/download http://www.cnblogs.com/wuhuacong/p/512334 阅读全文
posted @ 2016-04-26 10:01 zslm___ 阅读(134) 评论(0) 推荐(0) 编辑
摘要:[Serializable] public class OrderHead { public String OrderId { get; set; } public String OrderName { get; set; } } [Serializable] public class OrderT 阅读全文
posted @ 2016-04-25 10:42 zslm___ 阅读(602) 评论(0) 推荐(0) 编辑
摘要:public class SetterWrapper<TTarget, TValue> { private Action<TTarget, TValue> _setter; public SetterWrapper(PropertyInfo propInfo) { if (propInfo == n 阅读全文
posted @ 2016-04-24 23:15 zslm___ 阅读(308) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 数据库表名 /// </summary> [AttributeUsage(AttributeTargets.Class)] public class DBTableNameAttribute : Attribute { public string Name { g 阅读全文
posted @ 2016-04-24 23:09 zslm___ 阅读(201) 评论(0) 推荐(0) 编辑
摘要:<input type="file" id="fileName" name ="fileName" onchange="GetFileSize(this)" /><script type="text/javascript"> function GetFileSize(file) { alert(fi 阅读全文
posted @ 2016-04-21 19:21 zslm___ 阅读(171) 评论(0) 推荐(0) 编辑
摘要:public class Md5 { public static String MD5Encrypt(String str) { MD5 md5 = new MD5CryptoServiceProvider(); byte[] result = md5.ComputeHash(System.Text 阅读全文
posted @ 2016-04-21 13:28 zslm___ 阅读(144) 评论(0) 推荐(0) 编辑
摘要:public static class HttpHelper { const String POST = "Post"; const String ACCEPT= "text/html, application/xhtml+xml, */*"; const String CONTENT_TYPE=" 阅读全文
posted @ 2016-04-21 13:28 zslm___ 阅读(258) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.Web.Caching; 阅读全文
posted @ 2016-04-21 08:23 zslm___ 阅读(179) 评论(0) 推荐(0) 编辑
摘要:public static class CustomerConfigHelper { public static object _lockObject = new object(); private static string GetCustomConfigValue(string key) { s 阅读全文
posted @ 2016-04-21 08:19 zslm___ 阅读(177) 评论(0) 推荐(0) 编辑
摘要:1.建立测试单元项目 2.引用XUnit.dll或者在Nuget里安装XUnit 3.安装Nuget->xUnit.net[Runner: Visual Studio] 4.打开 测试->窗口->测试资源管理器 5.编写测试代码 public class TestClass { [Fact] pub 阅读全文
posted @ 2016-04-20 11:37 zslm___ 阅读(204) 评论(0) 推荐(0) 编辑
摘要:首先引入 automapper.dll 阅读全文
posted @ 2016-04-19 18:21 zslm___ 阅读(225) 评论(0) 推荐(0) 编辑
摘要:1.log4Net(J) 2.CommonLogging 3.elmah http://www.cnblogs.com/lerit/archive/2011/04/19/2020565.html 4.服务创建(TopShelf) http://www.cnblogs.com/jys509/p/461 阅读全文
posted @ 2016-04-19 11:22 zslm___ 阅读(248) 评论(0) 推荐(0) 编辑
摘要:很优雅的写法,实现了延迟加载的需要 另一种优雅写法是要用到.net 4.0里Lazy<T> 阅读全文
posted @ 2016-04-16 23:02 zslm___ 阅读(561) 评论(0) 推荐(0) 编辑
摘要:UPDLOCK.UPDLOCK 的优点是允许您读取数据(不阻塞其它事务)并在以后更新数据,同时确保自从上次读取数据后数据没有被更改。 当我们用UPDLOCK来读取记录时可以对取到的记录加上更新锁,从而加上锁的记录在其它的线程中是不能更改的只能等本线程的事务结束后才能更改, 更改库存begin tra 阅读全文
posted @ 2016-04-08 22:39 zslm___ 阅读(237) 评论(0) 推荐(0) 编辑
摘要:前几天看到一篇Java版的全局唯一主键,觉得写的很不错,就直接简化了成C#, long共 64个字节 其中0-9是随机数,10-19是计算机唯一值,20-22是区域唯一值,23-63是时间毫秒数 这样 随机数小于 2^10=1024 计算机唯一值 小于 2^10=1024 区域唯一值 小于 2^3= 阅读全文
posted @ 2016-04-08 22:30 zslm___ 阅读(400) 评论(0) 推荐(0) 编辑
摘要:enum Color : short { Nono=0, Black=1 } 我们知道基元类型(值类型), 是不可能被继承的,那这里的 :short 到底是什么意思? 我个人理解这里是用来限制取值范围与内存分配大小 但是有没有确切的答案呢,从MSDN也没有找到 阅读全文
posted @ 2016-04-01 09:29 zslm___ 阅读(385) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示