当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 73 下一页
摘要: 管理员角色运行cmd.exe,执行上边脚本;在 Component -> Services 找到 CCGSQueueService 服务,可以启动/停止服务。 阅读全文
posted @ 2019-10-29 15:25 hofmann 阅读(902) 评论(0) 推荐(0)
摘要: 在 vs tools:Developer Command Prompt For VS2019/2017 里执行上边命令。 阅读全文
posted @ 2019-10-29 15:21 hofmann 阅读(378) 评论(0) 推荐(0)
摘要: https://code.visualstudio.com/docs/?dv=win 阅读全文
posted @ 2019-10-29 14:41 hofmann 阅读(370) 评论(0) 推荐(0)
摘要: static public string SerializeToXml(T obj) { string xmlString = string.Empty; //XmlSerializer xmlSerializer = new XmlSerializer(typeof(T)); //using... 阅读全文
posted @ 2019-10-29 09:39 hofmann 阅读(421) 评论(0) 推荐(0)
摘要: /// /// 适用于初始化新实体 /// static public T RotationMapping(S s) { T target = Activator.CreateInstance(); var originalObj = s.GetType(); ... 阅读全文
posted @ 2019-10-29 09:35 hofmann 阅读(800) 评论(0) 推荐(0)
摘要: private EntityCollection<T> ToEntityCollection<T>(this List<T> list) where T : class { EntityCollection<T> entityCollection = new EntityCollection<T>(); list.ForEach(entityCollection.Add); return enti 阅读全文
posted @ 2019-10-28 10:27 hofmann 阅读(1827) 评论(1) 推荐(0)
摘要: 该对象上下文实例已被释放,不能用于需要连接的操作。 shared context per request模式,缩短Entity实例的存在时间和降低Entity实例的共享性,并考虑性能,因为Entity需要手动Dispose。 不能使用单例模式,静态方法就可以。 阅读全文
posted @ 2019-10-28 09:56 hofmann 阅读(404) 评论(0) 推荐(0)
摘要: /// /// 适用于初始化新实体 /// static public T RotationMapping(S s) { T target = Activator.CreateInstance(); var originalObj = s.GetType(); ... 阅读全文
posted @ 2019-10-25 14:34 hofmann 阅读(1670) 评论(0) 推荐(0)
摘要: 原因:添加实体时“代码生成策略” 的值是为 “T4” 解决办法:在”关系图“空白处,即.edmx文件里的空白处右键选属性,找到“代码生成策略”,将值“T4”改为“Legacy ObjectContext”,保存后.Desiger.cs文件中就生成代码了。 同时删除多余的.Context.tt和.tt 阅读全文
posted @ 2019-10-24 15:18 hofmann 阅读(535) 评论(0) 推荐(0)
摘要: string name = Dns.GetHostName(); string ip = Dns.GetHostAddresses(name).First().ToString(); 阅读全文
posted @ 2019-10-16 13:12 hofmann 阅读(200) 评论(0) 推荐(0)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 73 下一页