持有对象 java中引用太多了,所以使用容器装载。 泛型: 容器中装载不同对象,取出时候强制类型转换容易出错 class Apple { private static long counter; private final long id = counter++; public long id() ...
分类:
其他好文 时间:
2017-08-18 16:17:53
阅读次数:
216
原文:http://www.entityframeworktutorial.net/entityframework6/transaction-in-entity-framework.aspx EF默认情况下,在执行SaveChanges()时,在事务中进行插入,更新或删除操作。 EF为每个操作启动新 ...
分类:
其他好文 时间:
2017-08-18 15:22:33
阅读次数:
135
首先我们要布局一下。使用sizeclass来布局: 连线过来: @property (weak, nonatomic) IBOutlet UIButton *bird; @property (strong, nonatomic) IBOutletCollection(UIImageView) NSA ...
分类:
其他好文 时间:
2017-08-18 11:11:17
阅读次数:
201
一般Ubuntu都默认包含了Intel显卡的驱动,如果没有,那么先确定是不是显卡太高,比如I7第7代的CPU核显在Ubuntu 16.04中是没有的,导致画面会很卡,原因是Linux 4.4内核不包含Intel HD Graphics 630驱动,解决方法只能是在Ubuntu 16.04中升级Lin ...
分类:
系统相关 时间:
2017-08-17 18:37:40
阅读次数:
996
/// /// SqlHelper类 by zy 2017-8-17 /// public sealed class SqlHelper { //如果项目中只连接了一个数据库 那么可以在此定义一个固定的连接字符串 private static string connectionStr = Confi... ...
分类:
数据库 时间:
2017-08-17 15:16:14
阅读次数:
243
Farmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a way that the smallest numbe ...
分类:
其他好文 时间:
2017-08-16 21:39:45
阅读次数:
234
简介 长久以来,音频/视频捕获都是网络开发中的“圣杯”。多年来,我们总是依赖于浏览器插件(Flash 或 Silverlight)实现这一点。快来看看吧! 现在轮到 HTML5 大显身手了。也许看起来不是很显眼,但是 HTML5 的崛起引发了对设备硬件访问的激增。地理位置 (GPS)、Orienta ...
分类:
Web程序 时间:
2017-08-16 15:20:39
阅读次数:
219
Spring配置文件 Hibernate配置文件 web.xml 目录结构 jar包 ...
分类:
编程语言 时间:
2017-08-16 13:14:55
阅读次数:
230
when use vastinspector to check our vast response ,it tiped : "no 'access-control-allow-origin' header is present on the requested resource. origin 'h ...
分类:
数据库 时间:
2017-08-11 21:14:47
阅读次数:
287
一、WebService的开发手段 目前有关webService的开发手段有2种 1、JDK开发(jdk必须是1.6及以上版本,因为jdk是在1.6版本中引入并支持webservice开发的); 2、采用webservice框架开发,目前流行的webservice框架有已知的有如下几种:Apache ...
分类:
Web程序 时间:
2017-08-11 14:43:02
阅读次数:
185