ORM作为一种数据库访问机制已广泛地应用于各种项目当中,在.Net开发中,应用比较广泛的ORM框架大致有下面几个:
官方支持的有:Linq to SQL,Entity Framework。三方的有:NHibernate。前面介绍过Linq to SQL的应用,这篇介绍一下Entity Framework在Asp.Net MVC4中的应用。
首先用Visual Studio(2012或2...
分类:
Web程序 时间:
2014-06-20 12:01:44
阅读次数:
361
using System.Collections.Generic;using
System.ComponentModel;using System.Diagnostics;using System.Linq;using
System.Text;using System.Windows.Forms;u...
using System;using
System.Collections.Generic;using System.Linq;using System.Text;using
System.Drawing;using System.Drawing.Drawing2D;using System.Win...
分类:
其他好文 时间:
2014-06-13 13:47:28
阅读次数:
299
using System;using System.Collections.Generic;using
System.ComponentModel;using System.Data;using System.Drawing;using
System.Linq;using System.Text;u...
将班级id以字符串形式输入如:“1111,1112,1113”。数据库里的id为int型,在数据路里找到匹配的相应班级转换成列表。在这里爆出问题:不识别方法"System.String
ToString()",跪求大神提出解决方案。public IEnumerable FindClassesByID...
分类:
其他好文 时间:
2014-06-11 23:12:51
阅读次数:
248
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace Interface{ class InterfaceTest { static
void ...
分类:
其他好文 时间:
2014-06-11 11:59:21
阅读次数:
222
最近在做WinService,总结了一下安装和卸载程序,服务实现内容无法总结了。安装程序: 1
using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using
System.Text; 5 using Sy...
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace ConsoleApplication1{ /// /// 公用的特殊函数 ///
pub...
分类:
其他好文 时间:
2014-06-11 09:34:53
阅读次数:
411
using Microsoft.SharePoint;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Linq;
using System.Web.UI.WebCo...
分类:
其他好文 时间:
2014-06-07 14:39:38
阅读次数:
226
Essential Grid for Windows
Forms是一款功能强大的表格控件,很多功能和Excel表格相似,具有15种单元格类型,可以导入导出到Excel,支持多表头,多层显示,合并单元格,插入计算公式,支持LINQ,过滤和分组等。具体功能:支持Banner
Cells,可以联合背景和邻...
分类:
其他好文 时间:
2014-06-07 09:42:31
阅读次数:
338