Beispiel #1
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            var m = new Code.Sharding.MemberSharding();
            m.Id = Convert.ToInt32(TextBox1.Text);
            var location = CRL.Sharding.DBService.GetLocation("MemberSharding", m.Id);
            m.Name = location.ToString();
            Code.Sharding.MemberManage.Instance.SetLocation(m.Id).Add(m);

            var order = new Code.Sharding.OrderSharding();
            order.MemberId = m.Id;
            var location2 = CRL.Sharding.DBService.GetLocation("OrderSharding", m.Id);
            order.Remark = location2.ToString();
            Code.Sharding.OrderManage.Instance.SetLocation(m.Id).Add(order);
            Label1.Text = "插入会员编号" + m.Id + "," + location + " 订单" + location2;
        }
Beispiel #2
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            var m = new Code.Sharding.MemberSharding();

            m.Id = Convert.ToInt32(TextBox1.Text);
            var location = CRL.Sharding.DBService.GetLocation("MemberSharding", m.Id);

            m.Name = location.ToString();
            Code.Sharding.MemberManage.Instance.SetLocation(m.Id).Add(m);

            var order = new Code.Sharding.OrderSharding();

            order.MemberId = m.Id;
            var location2 = CRL.Sharding.DBService.GetLocation("OrderSharding", m.Id);

            order.Remark = location2.ToString();
            Code.Sharding.OrderManage.Instance.SetLocation(m.Id).Add(order);
            Label1.Text = "插入会员编号" + m.Id + "," + location + " 订单" + location2;
        }