DataAnnotations - Table Attribute: Table attribute can be applied to a class. Default Code-First convention creates a table name same as the class nam ...
分类:
其他好文 时间:
2016-07-05 17:04:25
阅读次数:
118
DataAnnotations - NotMapped Attribute: NotMapped attribute can be applied to properties of a class. Default Code-First convention creates a column for ...
分类:
移动开发 时间:
2016-07-05 17:01:56
阅读次数:
198
DataAnnotations - Key Attribute: Key attribute can be applied to properties of a class. Default Code-First convention creates a primary key column for ...
分类:
其他好文 时间:
2016-07-05 16:58:53
阅读次数:
106
DataAnnotations - ForeignKey Attribute: ForeignKey attribute can be applied to properties of a class. Default Code-First convention for ForeignKey rel ...
分类:
其他好文 时间:
2016-07-05 16:58:52
阅读次数:
142
DataAnnotations - InverseProperty Attribute: We have seen in the Code-First Convention section that Code-First creates {Class Name}_{Primary Key} fore ...
分类:
其他好文 时间:
2016-07-05 16:57:16
阅读次数:
120
译者前言 总是看到有人说用汇编实现objc_msgSend是为了速度快,当然这个不可否认。但是难道没有别的原因?于是就看到了这篇文章,遂翻译之!=。= 我自己的理解就是,用汇编实现,是为了应对不同的“Calling convention”,把函数调用前的栈和寄存器的参数、状态设置,交给编译器去处理。 ...
分类:
其他好文 时间:
2016-06-27 09:02:48
阅读次数:
232
thinkphp convention配置:'URL_MODEL' => '2', //URL模式nginx rewrite配置: if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; }如果你的ThinkP ...
分类:
Web程序 时间:
2016-06-23 12:54:18
阅读次数:
263
一、数据库配置 在父类配置ThinkPHP/Conf/convention.php中,找到数据库设置部分: 将这部分复制到我们模块的配置文件Home/Conf/config.php中,将需要的参数写上: 二、Model模型 数据库中每一张表对应一个模型,类名就是表名,类里面的成员变量就是列名, 把一 ...
分类:
Web程序 时间:
2016-06-21 09:19:03
阅读次数:
558
Struts2 Convention Plugin ( struts2 零配置 ) convention-plugin 可以用来实现 struts2 的零配置。零配置的意思并不是说没有配置,而是通过约定大于配置的方式,大量通过约定来调度页面的跳转而使得配置大大减少。考虑到某种因素,这里采用 myec ...
分类:
其他好文 时间:
2016-06-15 15:54:59
阅读次数:
124
这是2013年写的一篇旧文,放在gegahost.net上面 http://raison.gegahost.net/?p=31 February 19, 2013 function calling convention Filed under: c++ — Tags: C convention, C ...
分类:
其他好文 时间:
2016-06-10 08:31:50
阅读次数:
205