上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1约束 /// /// 1.0 基类约束 ,约束成了T必须传入Pig本身或者其子类 /// /// public class PigHouse where T : Pig { /// /// 泛型方法使用的类型占位符使用的是泛型类中的... 阅读全文
posted @ 2015-07-03 14:38 陌念 阅读(148) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace RedisCall{ using ServiceSt... 阅读全文
posted @ 2015-06-22 18:53 陌念 阅读(704) 评论(0) 推荐(0)
摘要: #region 1.0 单例类的写法 private static readonly MessageMgr _instance; static MessageMgr() { _instance = new MessageMgr(); } pri... 阅读全文
posted @ 2015-06-22 14:43 陌念 阅读(110) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { //1.0 string str = "server=.;database=test;uid=sa;pwd=m... 阅读全文
posted @ 2015-06-22 14:19 陌念 阅读(228) 评论(0) 推荐(0)
摘要: 1配置文件中 ... 阅读全文
posted @ 2015-06-22 14:17 陌念 阅读(224) 评论(0) 推荐(0)
摘要: 1 命名空间 using Model; using Model.ModelViews; using AutoMapper;2 生成类 partial class : DbContext可以改成我们自己需要的public static class EntityMapper3 构造函数publi... 阅读全文
posted @ 2015-05-01 14:44 陌念 阅读(404) 评论(0) 推荐(0)
摘要: 1输出类 public string EntityClassOpening(EntityType entity) { return string.Format( CultureInfo.InvariantCulture, "{0} {... 阅读全文
posted @ 2015-04-29 22:17 陌念 阅读(208) 评论(0) 推荐(0)
摘要: --当前数据库创建角色 exec sp_addrole 'rapp'--分配视图权限 GRANT SELECT ON veiw TO [角色] --指定视图列表ViewCardBaseInfo--GRANT SELECT ON v_city TO rapp--GRANT SELECT ON v... 阅读全文
posted @ 2015-04-28 13:36 陌念 阅读(1158) 评论(0) 推荐(0)
摘要: 1给一个方法添加过时的信息的时候 可以 [Obsolete("方法以及过时,请使用更好的算法EatNice()")] public string Eat() { return "吧唧吧唧的吃"; }编译一下就可以,下次... 阅读全文
posted @ 2015-04-11 11:48 陌念 阅读(156) 评论(0) 推荐(0)
摘要: 1 Thread thread = new Thread(threadRun); thread.IsBackground = true; thread.Start(); 2 private void threadRun() { MethodInvoker In = new Metho... 阅读全文
posted @ 2014-11-18 14:37 陌念 阅读(174) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页
点击右上角即可分享
微信分享提示