SetDelete(Where), SetDeleteV2(inDate)
public TransactionValue SetDeleteV2(string tableName, string indate, string owner_inDate)
public TransactionValue SetDelete(string tableName, Where where)
Parameters
Value | Type | Description |
---|---|---|
tableName | string | Name of table to modify |
inDate | string | (Selection) inDate of the row to delete |
owner_inDate | string | inDate of the user who owns the row |
where | Where | (Selection) Where condition to search the row to delete |
Description
The command to delete the table is returned.
Upon the deletion using the inDate in TransactionWriteV2, SetDeleteV2 must be used; SetDelete is unavailable.
Example
List<TransactionValue> transactionValues = new List<TransactionValue>();
//When removing row of your inDate
transactionValues.Add(TransactionValue.SetDeleteV2("tableName", "indate", Backend.UserInDate));
//When removing row of your inDate
transactionValues.Add(TransactionValue.SetDeleteV2("tableName", "indate", "owner_inDate"));
// OR
Where where = new Where();
where.Equal("name", "dragon_sword");
transactionValues.Add(TransactionValue.SetDelete("tableName", where));