VS2013上使用EF Power Tools的Reverse Engineer Code First逆向生成。发现数据库中的decimal(18, 4)字段在生成的mapping类中没有精度和小数位数。这使得通过EF保存数据时,自动生成的SQL缺省使用了decimal(18, 2).还好EF Po...
分类:
数据库 时间:
2014-09-06 02:13:12
阅读次数:
355
为何翻译此文 一、此文是Code Project社区2010年4月ASP.NET板块的最佳文章,说明了此文的份量; 二、锻炼自己的英文技术文章翻译能力,提高英文技术文档阅读能力; 三、了解掌握ASP.NET页面生命周期是非常必要的,这有助于我们更加灵活的控制页面,以我们需要的方式编程开发;关于...
分类:
Web程序 时间:
2014-09-06 01:03:22
阅读次数:
388
一些关于单元测试的理念: 单元测试并不能证明你的代码是正确的,只能证明你的代码是没有错误的。 Keep bar green and keep your code cool 关于JUnit的两种最基本的使用步骤 第一种方式=4.0的JUnit版本 1、 这种方式是基于注解来进行的,先要加上对应...
分类:
其他好文 时间:
2014-09-05 22:20:12
阅读次数:
298
BEGINdeclare p_id INT;declare p_Code INT default 0;declare p_Logo INT default 0;declare p_Name varchar(255) default '';declare p_Address varchar(755) ...
分类:
数据库 时间:
2014-09-05 17:49:11
阅读次数:
228
public class ViewHolder { // I added a generic return type to reduce the casting noise in client code @SuppressWarnings("unchecked") public static T ....
分类:
其他好文 时间:
2014-09-05 17:44:31
阅读次数:
146
fopen后必须判断 FILE *p 是否返回NULLfopen打开文件后,一定要fclosefeof 判断文件是否到达最后对一个文件进行简单的加密解密操作#include #include #include #define S_KEY 10void code(const char * src , ...
分类:
其他好文 时间:
2014-09-05 15:50:31
阅读次数:
158
这个的方法有很多吧。1. 用PInvok调用Windows API的PathRelativePathTo2. 自行处理字符串3. 利用Uri前两种就不说了,觉得有点麻烦,想了解的同学,自已,百度Google一下吧。第3种,也没啥好说的,直接Code。 1 public static ...
分类:
其他好文 时间:
2014-09-05 15:44:21
阅读次数:
149
#include"stdio.h"int main(){ int a[50],i;for (i=0;i<5;i++) scanf("%d",&a[i]);for (i=0;i<5;i++) printf("%d ",a[i]); }View Code#inclu...
分类:
其他好文 时间:
2014-09-05 14:21:21
阅读次数:
225
1.C\C++程序中调用Lua函数方法一:#include "stdafx.h"#include #include #include #include "lua.hpp"const char* lua_function_code = "function dealStr(str) \ ...
分类:
编程语言 时间:
2014-09-05 14:10:11
阅读次数:
343
以引入.pulltorefresh为例
下载zip,解压到桌面打开eclipse,File-Import-Existing Android Code Into Workspace选中library文件,导入到eclipse中打开此library,右键library,properties-Android-Library-勾选Is Library
打开你的程序后,右键你的主程序,prope...
分类:
移动开发 时间:
2014-09-05 13:03:01
阅读次数:
204