【发布时间】:2021-10-07 11:55:11
【问题描述】:
如何在 SQLite 中存储支付成功页面,以便我可以将登录页面链接到 SQLite
【问题讨论】:
如何在 SQLite 中存储支付成功页面,以便我可以将登录页面链接到 SQLite
【问题讨论】:
以下是我们将执行的步骤:
对于注册和登录,我们需要用户信息,因此我们将创建一个名为 UserDetails 的强类型类。我们将使用相同的方法将详细信息存储在 SQLite 数据库中。
public class UserDetails
{
public string ID { get; set; }
public string Username { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address { get; set; }
public string Country { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Mobile { get; set; }
public UserDetails() { }
public UserDetails(string Id, string username, string fname,string lname,string address,string country, string email, string password, string mobile) //Constructor with all parameters
{
ID = Id;
Username = username;
FirstName = fname;
LastName = lname;
Address = address;
Country = country;
Email = email;
Password = password;
Mobile = mobile;
}
public UserDetails(string Password) //Constructor with one parameter
{
this.Password = Password;
}
}
【讨论】: