继续上一节初始ASP.NET MVC4,继续深入学习,感受了一下微软的MVC4+EF5(EntityFramework5)框架的强大,能够高效的开发出网站应用开发系统,下面就看一下如何用MVC4+EF5来实现数据的读取。实现效果操作步骤1.创建数据库--创建表格--
Create table News
(
id int identity(1,1) primary key,
NewsTitle...
分类:
Web程序 时间:
2014-06-11 00:53:12
阅读次数:
286
singleordefault(where) 条件不支持动态
所以想要达到目标,就需要转换思路,把where在前面调用,然后再接,代码如下
public TResult GetSingle(Expression> exWhere, Expression> selector) where T : class
{
using (SysDb d...
分类:
其他好文 时间:
2014-06-11 00:32:01
阅读次数:
461
继续上一节初始ASP.NET
MVC4,继续深入学习,感受了一下微软的MVC4+EF5(EntityFramework5)框架的强大,能够高效的开发出网站应用开发系统,下面就看一下如何用MVC4+EF5来实现数据的读取。实现效果操作步骤1.创建数据库[sql]view
plaincopyprint?...
分类:
Web程序 时间:
2014-06-10 22:08:51
阅读次数:
375
using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using System.Text;u...
分类:
数据库 时间:
2014-06-10 13:25:34
阅读次数:
269
1 using System; 2 using
System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using
System.Threading.Tasks; 6 7 namespace 冒泡排序法 8 .....
分类:
其他好文 时间:
2014-06-10 12:55:13
阅读次数:
165
利用扩展方法,实现参数验证。 1 using System; 2 using
System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using
System.Threading.Tasks; 6 7 name....
分类:
其他好文 时间:
2014-06-10 12:53:48
阅读次数:
141
using IExtendServices;using System;using
System.Collections.Generic;using System.IO;using System.Linq;using
System.Reflection;using System.Text;using ...
分类:
其他好文 时间:
2014-06-10 09:25:33
阅读次数:
191
前几天在写dao层实现的时候,自己写了sql语句但是在dao层找不到语句,在sqlmap文件里面已经配置好了,从错误的类型来看,觉得很可能是查找路径不正确,最后发现是配置文件的namespace这个参数起的作用,命名空间大家都知道是起到了避免命名冲突的作用,在各种java类里面都是通过包和命名空间来避免冲突,因此它一般是启用的,但是在ibatis中如果不配置默认它是不起作用的,因此查了查咋么配置i...
分类:
其他好文 时间:
2014-06-10 07:53:02
阅读次数:
214
首先是xaml代码: 建一个PropertyNodeItem类:using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace...
分类:
其他好文 时间:
2014-06-10 00:43:33
阅读次数:
313
1 using System; 2 using
System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6
namespace 静态类密闭类 7 { 8 class Program 9 {10...
分类:
其他好文 时间:
2014-06-09 18:17:44
阅读次数:
145