随笔分类 -  EF

摘要:The Contoso University sample web application demonstrates how to create ASP.NET MVC 5 applications using the Entity Framework 6 and Visual Studio 201 阅读全文
posted @ 2016-06-15 15:13 每天进步一点点! 阅读(242) 评论(0) 推荐(0)
摘要:StudentEntities entities = new StudentEntities(); //初始化对象 Register register = new Register(); #region 增加 //regi... 阅读全文
posted @ 2016-01-15 15:38 每天进步一点点! 阅读(274) 评论(0) 推荐(0)
摘要:EF1)简单查询后台代码 1 using MvcApplication18.Models; 2 using System; 3 using System.Collections.Generic; 4 using System.Data.SqlClient; 5 using System.Linq; ... 阅读全文
posted @ 2015-09-04 01:21 每天进步一点点! 阅读(542) 评论(0) 推荐(0)
摘要:在EF中有些添加的字段 文本显示超多文字,想截取显示又没有截取功能。怎么办? 我们可以在EF中类的属性中设置你想限制这个用户名只能有10个字符长度public String UserName{ get{return username;} set{if(value.Len... 阅读全文
posted @ 2015-09-03 14:33 每天进步一点点! 阅读(1492) 评论(0) 推荐(0)