上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 缓存是有延迟的 解决方案: Redis(远程字典内存服务器,remote directionary server): Redis == SqlServer RDM == SqlServer Client ADO.NET ==ServiceStack/StackExchange ServiceStac 阅读全文
posted @ 2018-08-01 20:02 码到世界末日 阅读(408) 评论(0) 推荐(0)
摘要: 契约 服务契约 数据契约 (DataContractAttribute、DataMemberAttribute) 消息契约(MessageContractAttribute、MessageHeaderAttribute、MessageBodyMemberAttribute) 服务契约 数据契约 (D 阅读全文
posted @ 2018-07-30 20:56 码到世界末日 阅读(184) 评论(0) 推荐(0)
摘要: 序列化(串行化),是.NET 运行环境用来支持用户自定义类型的流化机制。 序列化:就是把一个对象保存到数据库的一个字段或一个文件中, 反序列化:就是把这个字段还原的对象实用。 其目的:就是将自定义对象以某种储存的方式持久化,或将这个对象从一个地方输到另一个地方 1.NET 支持序列化的几种方式 二进 阅读全文
posted @ 2018-07-29 08:22 码到世界末日 阅读(190) 评论(0) 推荐(0)
摘要: 1.加密类型 1)MD5 不可逆的加密 2)DES 对称可逆加密 3)RES 非对称可逆加密 4)数字证书SSL 阅读全文
posted @ 2018-07-28 21:52 码到世界末日 阅读(576) 评论(0) 推荐(0)
摘要: 1.演变 int k = 10; //1.0 NoParamNoReturn noParamDelegate1 = new NoParamNoReturn(this.NoParam); noParamDelegate1.Invoke(); //2.0 匿名方法,可以访问到 K 值 NoParamNo 阅读全文
posted @ 2018-07-27 22:23 码到世界末日 阅读(128) 评论(0) 推荐(0)
摘要: 1.解耦 using System.Collections.Generic; namespace MyDelegate { public class ListExtend { #region 数据准备 /// <summary> /// 准备数据 /// </summary> /// <return 阅读全文
posted @ 2018-07-23 22:09 码到世界末日 阅读(186) 评论(0) 推荐(0)
摘要: 多态:允许将子类类型的指针赋值给父类类型的指针 1.抽象 (子类继承父类,若要定义构造方法,则父类必须要有对应的构造方法) using System; namespace MyOO.Abstract { /// <summary> /// 基础抽象类 /// </summary> public ab 阅读全文
posted @ 2018-07-22 18:10 码到世界末日 阅读(202) 评论(0) 推荐(0)
摘要: select ',' + ta.value from ta for xml path; select ','+ value from ta for xml path(''); select * from ta for xml path('row'); select * from ta for xml path(''); 阅读全文
posted @ 2018-07-17 11:05 码到世界末日 阅读(131) 评论(0) 推荐(0)
摘要: 1.枚举获取特性,转换值 using System; using System.Reflection; namespace MyAttribute { public static class HelloExtesion { public static string GetStr(this Enum 阅读全文
posted @ 2018-07-12 20:51 码到世界末日 阅读(179) 评论(0) 推荐(0)
摘要: 1.枚举获取特性,转换值 using System; using System.Reflection; namespace MyAttribute { public static class HelloExtesion { public static string GetStr(this Enum 阅读全文
posted @ 2018-07-10 22:12 码到世界末日 阅读(164) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页