摘要: //查询 //查询指定字符串出现的个数,类似于模糊查询select count(*) from Book where Name like '%字符串%' db.Book.Where(x => x.Name.Contains(txtName.Text.Trim())).Count(); //接收查询的数据 List bk = db.Book.ToList(); dataGridView1.... 阅读全文
posted @ 2018-01-07 22:10 enych 阅读(155) 评论(0) 推荐(0) 编辑