protected void Button1_Click(object sender, EventArgs e) { GT_GoodsDT dt = new GDataBS.GT_GoodsDT(); var Goods = new GT_GoodsDT();// { }.OrderByDesc(); //Action 相当于定义好的委托 Action <string> BookAction = new Action <string>(Book); BookAction("小明吗"); }
protected void Button3_Click(object sender, EventArgs e) { GT_GoodsDT dt = new GDataBS.GT_GoodsDT(); var r = new GT_GoodsDT().GTSearchCondition(""); string sdf = dt?.GoodsName; List <GT_GoodsDT> listdt = new List <GT_GoodsDT>(); DateTime df = Convert.ToDateTime("2018-06-15").AddDays(1); listdt.Where(w => w.GoodsName == "hg"); //string rs = "抵消"; //var r = new GT_GoodsDT().GTMListByParameter(); //var rd = r.Where(w => w.GoodsName.Contains(rs)).ToList(); //var Goods = new GT_GoodsDT().OrderByDesc(s => s.CreateTime >= df && s.CreateTime <= df); }
protected void Button4_Click(object sender, EventArgs e) { //var r = new GT_Pro_GetTicketList() { States = States.jinyong, GTNULL = "" }.GTInfo(s=>s.GoodId); var r = new GT_GoodsDT().GTInfo(s => s.GoodsName == null); }