Inheritance: CRL.Order.IOrder
Example #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     var order = new Code.Order() { UserId = 1, Remark = "test" };
     order.Channel = "channel1";//Channel是新增加的属性
     //通过继承实现新增业务,不需要再写提交订单方法
     //Code.OrderManage.Instance.SubmitOrder(order);
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var order = new Code.Order();
            //var result = order.Products.Where(b => b.Id > 0).ToList();

            //var resutl2 = ProductDataManage.Instance.QueryFromCache(b => b.ProductName.Len() > 2);

            //Code.ProductDataManage.Instance.DynamicQueryTest();
            var query  = Code.ProductDataManage.Instance.GetLambdaQuery();
            var query2 = query.Join <Code.Member>((a, b) => a.Id == b.Id).Select((a, b) => new
            {
                aa1 = b.Id,
                ss2 = a.TransType
            });

            query2.Where((a, b) => a.BarCode == "" && b.AccountNo == "222");
            //query.Where(b=>b.Id==2);
            var sql = query.ToString();

            //var n2 = GC.GetTotalMemory(true);
            //var list1 = Code.ProductDataManage.Instance.GetLambdaQuery().Top(1000).ToList();
            //var list2 = Code.OrderManage.Instance.GetLambdaQuery().Top(1000).ToList();
            //var n3 = GC.GetTotalMemory(false) - n2;
            Response.Write(sql);
            //Response.End();
        }
Example #3
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            var order = new Code.Order()
            {
                UserId = 1, Remark = "test"
            };

            order.Channel = "channel1";//Channel是新增加的属性
            //通过继承实现新增业务,不需要再写提交订单方法
            //Code.OrderManage.Instance.SubmitOrder(order);
        }