摘要:
1,本篇接着上篇link to sql的实例扩充entity sql. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Linq; usin 阅读全文
摘要:
以前只知道分页,但是不知道如何实现的,曾经有次面试让我实现分页,搜了很久,只是知道有个top,但是不懂得原理,没有搞出来。今天在学习link to ef时,使用到了一条语句就把分页搞定了,然后我才明白了原理。 1,下面是link to ef中使用到的分页方法:link分页 //创建数据库实体 using (studentEntities stuEntity = new studentEntities()) { int skipPage=2;//要跳过多少页,指定2也就是跳到第3页 ... 阅读全文
摘要:
1,我建立了两张表,T_StuInfo,和T_Class,前者的classid是后者的外键。 2,下面是补充的link to sql操作 using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文