コード例 #1
0
        public void UpdateJointID(string key, Service.HoldingPen account, int otherID)
        {
            ServiceDataContext db = new ServiceDataContext();

            account.JointHoldingPenID = otherID;
            db.SubmitChanges();
        }
コード例 #2
0
        public bool SendAccount(string key, Service.HoldingPen account, InterestAnswer[] interests)
        {
            ServiceDataContext db = new ServiceDataContext();

            JavaScriptSerializer js = new JavaScriptSerializer();

            account.InterestObjects = js.Serialize(interests);

            if (account.Password == null)
            {
                account.Password = "";
            }

            db.HoldingPens.InsertOnSubmit(account);
            db.SubmitChanges();

            return(true);
        }