会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gobuild
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2015年11月18日
首页跳转
摘要:
阅读全文
posted @ 2015-11-18 15:50 gobuild
阅读(245)
评论(0)
推荐(0)
2015年11月3日
MVC 三步完成增删改查设计
摘要: 1.添加模型类: public class Product { public int Id { get; set; } public string Name { get; set; } public string Category { get; s...
阅读全文
posted @ 2015-11-03 21:07 gobuild
阅读(252)
评论(0)
推荐(0)
2015年10月31日
MVC中使用SqlServerCe
摘要: 打开程序包管理控件台:Install-Package FubarDev.NDbUnit.SqlServerCeWeb.config中修改:
阅读全文
posted @ 2015-10-31 21:51 gobuild
阅读(267)
评论(0)
推荐(0)
2015年10月30日
回车转Tab
摘要: 把Form的KeyPreView设为true,然后在Form的KeyPress中增加下列代码即可:if (e.KeyChar == '\r')this.SelectNextControl(this.ActiveControl, true, true, true, true);
阅读全文
posted @ 2015-10-30 19:21 gobuild
阅读(140)
评论(0)
推荐(0)
动态代码
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文
posted @ 2015-10-30 19:20 gobuild
阅读(707)
评论(0)
推荐(0)
2015年10月29日
Mvc 用户没有登录跳转到登录界面
摘要: 登录时增加:Session["UserName"] = model.UserName;Controller: protected override void OnActionExecuting(ActionExecutingContext filterContext) { ...
阅读全文
posted @ 2015-10-29 08:38 gobuild
阅读(1311)
评论(0)
推荐(0)
2015年10月27日
Mvc
摘要: Models Controlls Views 示例网站
阅读全文
posted @ 2015-10-27 07:17 gobuild
阅读(190)
评论(0)
推荐(0)
Mvc提交
摘要: Controller [ValidateAntiForgeryToken] [HttpPost] public ActionResult Index(FormCollection focm) { string name = focm["Name"]; ViewBag.Message ...
阅读全文
posted @ 2015-10-27 05:02 gobuild
阅读(178)
评论(0)
推荐(0)
2015年10月25日
EF查询 linq
摘要: //Student.cspublic int Id{get;set;}public string name{get;set;} //SchoolContext.cspublic class SchoolContext : DbContext{public SchoolContext(): base(...
阅读全文
posted @ 2015-10-25 00:09 gobuild
阅读(357)
评论(0)
推荐(0)
2015年10月24日
EF数据迁移 Migrations
摘要: 程序包管理控制台:敲入Enable-Migrations;修改:AutomaticMigrationsEnabled = true;Global.asax中添加:Database.SetInitializer(new MigrateDatabaseToLatestVersion()) ;
阅读全文
posted @ 2015-10-24 23:53 gobuild
阅读(247)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告