/// <summary> /// 异步更新 /// </summary> /// <param name="columns">要更新的列的内容</param> /// <param name="whereLambda">更新条件</param> /// <returns></returns> public async Task <bool> UpdateEntityAsync(Expression <Func <T, T> > columns, Expression <Func <T, bool> > whereLambda) { return(await SimpleDb.UpdateAsync(columns, whereLambda)); }
/// <summary> /// 异步更新 /// </summary> /// <param name="t"></param> /// <returns></returns> public async Task <bool> UpdateEntityAsync(T t) { return(await SimpleDb.UpdateAsync(t)); }