一、前言经过EF的《第一篇》,我们已经把数据访问层基本搭建起来了,但并没有涉及实体关系。实体关系对于一个数据库系统来说至关重要,而且EF的各个实体之间的联系,实体之间的协作,联合查询等也都依赖于这些实体关系。二、实体映射实体与数据库的映射可以通过DataAnnotation与FluentAPI两种方...
分类:
其他好文 时间:
2014-08-13 18:36:17
阅读次数:
269
1、eq() 筛选指定索引号的元素2、first() 筛选出第一个匹配的元素3、last() 筛选出最后一个匹配的元素4、hasClass() 检查匹配的元素是否含有指定的类5、filter() 筛选出与指定表达式匹配的元素集合6、is() 检查元素是否参数里能匹配上的7、map...
分类:
Web程序 时间:
2014-08-13 14:31:06
阅读次数:
306
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-08-13 14:29:46
阅读次数:
165
题目链接:uva 10294 - Arif in Dhaka (First Love Part 2)
题目大意:项链和手镯都是由若珠子穿成的环形首饰,区别在于手镯可以翻转,但是项链不行。给定n和t,表示用t种颜色的n个珠子能制作的项链和手镯的个数。
解题思路:等价类计数,一共两种置换,旋转或者翻转。
旋转:枚举间距0,1,2,3…,n?1,所以不动点a=∑i=0n?1tgcd(n...
分类:
其他好文 时间:
2014-08-13 13:15:06
阅读次数:
217
话说万张高楼平地起,不会走之前先学会爬吧。尤其对于我等的小菜同学来说更是这样,不管怎么先code first吧,等我等小菜们翅膀硬了才test first吧。1, 怎么运行python?先到python.org下载python的安装文件才说吧,兄弟你慢点是org不是com小心额,当然还有中文的下载链...
分类:
编程语言 时间:
2014-08-13 12:34:06
阅读次数:
217
;;?learning?The?Little?Schemer
(def?car?first)
(def?cdr?rest)
(def?cons?clojure.core/cons)
(def?eq??=)
(def?list??clojure.core/list?)
(defn?atom??[x]
??(not?(list??x)))
(defn...
分类:
其他好文 时间:
2014-08-13 10:44:55
阅读次数:
303
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-08-13 00:28:34
阅读次数:
324
二分查找,顾名思义就是分量分查找。采用二分法查找时,数据需是排好序的,这是使用二分查清找的前提。该算法的基本实现思路是: 1.先将数据排序 2.确定中间位置mid=(first+last)/2; 3.比较所要查找的关键字 key与中间位置的关键字的大小,如果比key和mid.k...
分类:
其他好文 时间:
2014-08-12 21:51:54
阅读次数:
328
题目参考自博客:http://blog.csdn.net/a601025382s/article/details/38517783//string &replace(iterator first0, iterator last0,const_iterator first, const_iterato...
分类:
其他好文 时间:
2014-08-12 21:43:04
阅读次数:
278
Like change page Change activity first we should create a activity ,we should extends class activity and override onCreate() , then configure informat...
分类:
移动开发 时间:
2014-08-12 18:40:24
阅读次数:
215