private void button2_Click(object sender, EventArgs e) { RegUsers user = new RegUsers() { Name = "王振鑫", Nation = "汉族", Password = "******", UserName = "******", createdAt = DateTime.Now, updatedAt = DateTime.Now, UserProfile = new UserProfile() { Address="七里河", Age=32, Phone="13919089657" } }; LeanCloudRepository<RegUsers> rep = new LeanCloudRepository<RegUsers>(); rep.Add(user); }
private void button4_Click(object sender, EventArgs e) { RegUsers user = new RegUsers() { Name = "王振鑫", Nation = "汉族", Password = "******", UserName = "******", createdAt = DateTime.Now, updatedAt = DateTime.Now, objectId = "55eafc98ddb263b55d2bad39", UserProfile = new UserProfile() { Address="七里河", Age=33, Phone="13919873455" } }; LeanCloudRepository<RegUsers> rep = new LeanCloudRepository<RegUsers>(); rep.Update(user); }
private void button5_Click(object sender, EventArgs e) { RegUsers user = new RegUsers() { Name = "王振鑫", Nation = "汉族", Password = "******", UserName = "******", createdAt = DateTime.Now, updatedAt = DateTime.Now, objectId = "55e9409f60b2fb7557baa51b" }; LeanCloudRepository<RegUsers> rep = new LeanCloudRepository<RegUsers>(); rep.Delete(user); }