dapper 异步修改方法
作者:互联网
public async Task<int> UpdateStatusByWarehouseId(bool isValid, int warehouseId) { using (var conn = GetDBConnection()) { string sqlText = $@"UPDATE warehouse SET IsValid=@IsValid WHERE WarehouseId=@WarehouseId "; return await conn.ExecuteAsync(sqlText, new { IsValid = isValid, WarehouseId = warehouseId }); } }
标签:warehouseId,WarehouseId,异步,IsValid,修改,sqlText,isValid,dapper,conn 来源: https://www.cnblogs.com/siyunianhua/p/10872027.html