首页 > 代码库 > EF2

EF2

 zkhisEntities db = new zkhisEntities();
            i++;
        var aa =    db.HJSFB.Select(u => new { name=u.SKH}).ToList();

            foreach (var item in aa)
            {
                this.Text = item.name; 
            }
        gridControl1.DataSource=    db.HJSFB.Where<HJSFB>(u => true).OrderBy<HJSFB,string>(u=>u.SKH).Skip((i-1)*10).Take(10).ToList(); ;

 

EF2