public class SampleApi : ForguncyApi
{
[Post]
public void ModifySampleData()
{
var data = new Dictionary<string, ModifyData>();
var modifyData = new ModifyData();
modifyData.AddRows.Add(new Dictionary<string, object>
{
{"フィールド1", 1 },
{"フィールド2", 2 }
});
modifyData.DeleteRows.Add(new ColumnValuePair()
{
ColumnName = "ID",
Value = 2
});
modifyData.EditRows.Add(new EditData()
{
PrimaryKey = new ColumnValuePair()
{
ColumnName = "ID",
Value = 3
},
Values = new Dictionary<string, object>
{
{"フィールド1", 1 },
{"フィールド2", 2 }
}
});
data.Add("テーブル1", modifyData);
this.DataAccess.ModifyTablesData(data);
}
}