-
Notifications
You must be signed in to change notification settings - Fork 0
Example.QueryBuilder.Delete
IzayoiJiichan edited this page Aug 14, 2024
·
1 revision
{
var queryOption = new QueryOption();
var queryBuilder = new QueryBuilder(queryOption);
var delete1 = new Delete()
.SetFrom("users")
.AddWhere("id", "=", 1);
queryBuilder.Build(delete1);
string query = queryBuilder.GetQuery();
var parameters = queryBuilder.GetParameters();
// query:
// DELETE
// FROM users
// WHERE id = @w_0
// parameters:
// [0]:
// ParameterName: @w_0
// DbType: DbType.Int32
// Value: 1
}
- Izayoi.Data
- Izayoi.Data.Query
- Izayoi.Data.Repository
- Izayoi.Data.Validation
Examples