随笔 - 21
文章 - 0
评论 - 8
02 2009 档案
实践MVC+Entity framework+Enterprise Library(2)
摘要: 接着昨天的,先讲讲Entity framework创建实体之后,在代码中这么写DbMVCEntities context = new DbMVCEntities();nt count = (from e in context.Usrwhere e.username == usernamewhere e.password == passwordselect e).Count();接着通过count来...阅读全文
实践MVC+Entity framework
摘要: 使用MVC模仿模板文件做了一个用户的登录,注册,修改密码的功能Controllerusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.Web.Mvc.Ajax;using MvcTest.Models;namespace ...阅读全文
