2011年12月7日
摘要: View Code //定义一些实体 public class Entity { public Entity(string Names,string Sex) { this.Names = Names; this.Sex = Sex; } public string Names { get; set; } public string Sex { get; set; } }... 阅读全文
posted @ 2011-12-07 23:23 SatanLucifer 阅读(424) 评论(0) 推荐(0) 编辑
  2011年12月5日
摘要: 普通方式分页:View Code private IQueryable GetDate() { Linq.PageDataContext Lpage = new Linq.PageDataContext(); var Date = from lp in Lpage.Person select new { lp.ID, ... 阅读全文
posted @ 2011-12-05 23:04 SatanLucifer 阅读(146) 评论(0) 推荐(0) 编辑
  2011年11月28日
摘要: linq to sqlsql to linq 阅读全文
posted @ 2011-11-28 23:39 SatanLucifer 阅读(130) 评论(0) 推荐(0) 编辑
  2011年11月23日
摘要: XML文件View Code <?xml version="1.0" encoding="utf-8" ?><All> <Config> <appConfig>This is Connectiong String</appConfig> </Config> <Message> <Name>This is Name</Name> </Message> <KY> <key>1</key> <valu 阅读全文
posted @ 2011-11-23 21:30 SatanLucifer 阅读(117) 评论(0) 推荐(0) 编辑
  2011年11月17日
摘要: 普通方式之增删改查,如:View Code public partial class Index : System.Web.UI.Page { Linq.Linq_I_TableDataContext Li; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetBind(); GetId(); } } ... 阅读全文
posted @ 2011-11-17 00:51 SatanLucifer 阅读(155) 评论(0) 推荐(0) 编辑