# Update
更新已存在的数据
# 示例
var request = new SqlessEditRequest()
{
Table = Tables.User,
Queries = new List<Query.SqlessQuery>()
{
new Query.SqlessQuery()
{
Field="Uid",
Value="1",
Type=Query.SqlessQueryType.Equal
}
}
};
request.LoadFromObject(new
{
Phone = DateTime.Now.ToString("hhmmss"),
Password = new Random().Next(100000, 999999).ToString()
});
await sqless.Update(request);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19