05 2016 档案

摘要:sql语句 <!--批量插入待收流水--> <insert id="BatchInsertOrder" parameterClass="ArrayList"> INSERT INTO [Order] ([OrdreNo] ,[ClientId] ,[ClientName] ,[ClientPhone 阅读全文
posted @ 2016-05-31 16:59 zslm___ 阅读(1273) 评论(0) 推荐(0) 编辑
摘要:语句 <select id="qryProjectsByIds" parameterClass="Hashtable" resultMap="projectTypeField" > select * from Project with(nolock) where PrjId in <iterate 阅读全文
posted @ 2016-05-31 15:49 zslm___ 阅读(167) 评论(0) 推荐(0) 编辑
摘要:在Mapper的UserRight.xml中 在 sqlmap.config 然后是 DAO 最后是调用 阅读全文
posted @ 2016-05-27 19:21 zslm___ 阅读(500) 评论(0) 推荐(0) 编辑
摘要:建立 空的 MVC4项目 首先引用 NuGet 里 autofac 和 autofac .integration. mvc 然后 建立Model public class Person { public int Id { get; set; } public string Name { get; s 阅读全文
posted @ 2016-05-19 17:24 zslm___ 阅读(1075) 评论(0) 推荐(0) 编辑
摘要:public class Order { public string OrderId { get; set; } } public class SetterWrapper<TTarget, TValue> { private Action<TTarget, TValue> _setter; publ 阅读全文
posted @ 2016-05-18 11:54 zslm___ 阅读(451) 评论(0) 推荐(0) 编辑
摘要:优化反射 http://kb.cnblogs.com/page/172119/ http://www.2cto.com/kf/201301/182765.html http://blog.sina.com.cn/s/blog_94804b4a0100ykpw.html http://www.info 阅读全文
posted @ 2016-05-17 00:03 zslm___ 阅读(167) 评论(0) 推荐(0) 编辑
摘要:在 Windows Server 2008 or Windows Server 2008 R2 上安装消息队列 4.0 在服务器管理器中,单击“功能”。 在“功能摘要”下的右窗格中,单击“添加功能”。 在生成的窗口中,展开“消息队列”。 展开“消息队列服务”。 单击“目录服务集成”(用于加入域的计算 阅读全文
posted @ 2016-05-16 10:59 zslm___ 阅读(192) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 创建单例对象 /// </summary> /// <typeparam name="T"></typeparam> public sealed class Singleton<T> where T : new() { /// <summary> /// 单例对象 阅读全文
posted @ 2016-05-16 10:00 zslm___ 阅读(153) 评论(0) 推荐(0) 编辑
摘要:(1)建立 SqlMap.config文件 <?xml version="1.0" encoding="utf-8" ?> <sqlMapConfig xmlns="http://ibatis.apache.org/dataMapper" xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2016-05-13 19:34 zslm___ 阅读(155) 评论(0) 推荐(0) 编辑
摘要:代码管理用 TortoiseGit 单元测试用 xunit,TestDrive.Net 项目管理用 Jira ORM用 Ibatis 类的映射用 AutoMap,TinyMap(速度更快) IoC用Autofac 缓存用Redis 文档管理用Wiki 日志用 log4net,CommonLog Dl 阅读全文
posted @ 2016-05-13 15:29 zslm___ 阅读(205) 评论(0) 推荐(0) 编辑
摘要:public static class A { static A() { } } static构造函数不能是public,也不可能被主动调用,所以public没有意义 阅读全文
posted @ 2016-05-13 09:48 zslm___ 阅读(547) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/zhuweisky/article/details/50439386 OAUS 阅读全文
posted @ 2016-05-12 17:53 zslm___ 阅读(481) 评论(0) 推荐(0) 编辑
摘要:http://referencesource.microsoft.com/ 阅读全文
posted @ 2016-05-12 16:12 zslm___ 阅读(116) 评论(0) 推荐(0) 编辑
摘要:public class TemplateTransferConfig { public Type ClassType { get; set; } /// <summary> /// 如果ClassType不为空,则该字段代表字段名.如果为空,则为变量占位符 /// </summary> publi 阅读全文
posted @ 2016-05-12 15:36 zslm___ 阅读(828) 评论(0) 推荐(0) 编辑
摘要:网上看到的,记录下来,供参考,备忘 Dictionary<string, int> list = new Dictionary<string, int>(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { Console.Write 阅读全文
posted @ 2016-05-12 14:38 zslm___ 阅读(539) 评论(0) 推荐(0) 编辑
摘要://yield return 返回类型必须为 IEnumerable、IEnumerable<T>、IEnumerator 或 IEnumerator<T>。 static IEnumerator<int> yieldTest() //yield return 返回IEnumerator { yie 阅读全文
posted @ 2016-05-10 22:39 zslm___ 阅读(470) 评论(0) 推荐(0) 编辑
摘要:在相应的文件夹上右键 Tortiusegit->settings->gig 点击 第1个按钮 Edit local .git/config 在打开的文档里 url = http://xx.com/sss.git 里面修改如下 url=http://account:password@xx.com/ss 阅读全文
posted @ 2016-05-10 18:36 zslm___ 阅读(342) 评论(0) 推荐(0) 编辑
摘要:使用Ibatis总是说未能加载相应的sqlmap.xml,原来是 xml以内容方式,而不是嵌入式方式载入Dll中 阅读全文
posted @ 2016-05-10 17:47 zslm___ 阅读(302) 评论(0) 推荐(0) 编辑
摘要:var assemArr = AppDomain.CurrentDomain.GetAssemblies(); var assem = Assembly.GetExecutingAssembly() ; 阅读全文
posted @ 2016-05-09 15:27 zslm___ 阅读(1609) 评论(0) 推荐(0) 编辑
摘要://数据处理接口 public interface IDal<T> where T : class { void Insert (T model); void Update(T model); void Delete(T model); T Select(Int32 id); } //MsSql接口 阅读全文
posted @ 2016-05-09 14:43 zslm___ 阅读(160) 评论(0) 推荐(0) 编辑
摘要:使用 Linq:var types = AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(ISecurity)))).To 阅读全文
posted @ 2016-05-09 11:06 zslm___ 阅读(702) 评论(0) 推荐(0) 编辑
摘要:public byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); stream.Seek(0, SeekOrigin.Be 阅读全文
posted @ 2016-05-09 10:55 zslm___ 阅读(150) 评论(0) 推荐(0) 编辑
摘要:顺序执行 class Program { static void Main(string[] args) { new MyClass(); Console.Read(); } } public class MyClass { public MyClass() { Console.WriteLine( 阅读全文
posted @ 2016-05-06 15:38 zslm___ 阅读(166) 评论(0) 推荐(0) 编辑
摘要:class Car { public Int32 Id { get; set; } public String Name { get; set; } static void Main(string[] args) { RedisClient client = new RedisClient... 阅读全文
posted @ 2016-05-05 17:44 zslm___ 阅读(4139) 评论(0) 推荐(1) 编辑
摘要:打开Resharper,选择Options,然后选择Tools中的External Sources,你的情况是选择了Navigation to Object Brower这一项了,换成第一个Default Visual Studio navigation就好了 阅读全文
posted @ 2016-05-05 14:59 zslm___ 阅读(249) 评论(0) 推荐(0) 编辑
摘要:有时候,网站 JS 有问题,或者我们想调试JS,就修改了JS,,然后希望它在本地能与网站一起运行,就需要用到 挂载JS了 阅读全文
posted @ 2016-05-05 10:13 zslm___ 阅读(615) 评论(0) 推荐(0) 编辑
摘要:配置文件 <?xml> <root> <parent name="C"> <child name="C1">Spring</child> <child name="C2">Summer</child> </parent> <parent name="D"> <child name="D1">auto 阅读全文
posted @ 2016-05-04 09:48 zslm___ 阅读(241) 评论(0) 推荐(0) 编辑
摘要:今天 用 Request.Form /Request.Params 等怎么也获取不到客户发过来的Post 数据 后来试着用了 Request.InputStream 竟然可以 using (System.IO.StreamReader sr = new System.IO.StreamReader( 阅读全文
posted @ 2016-05-03 14:12 zslm___ 阅读(2177) 评论(0) 推荐(0) 编辑

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