/// <summary> /// 更新 /// </summary> /// <param name="instance">支持PO、POCO、IDictionary、IDictionaryOfKV, NameValueCollection 类型</param> /// <returns></returns> public static int Update(object instance) { return(InnerRepository.Update(instance)); }
/// <summary> /// 更新并根据Lambda表达式返回特定信息 /// </summary> /// <param name="instance">支持PO、POCO、IDictionary、IDictionaryOfKV, NameValueCollection 类型</param> /// <param name="updateCheck">除了id条件之外的附加条件</param> /// <param name="resultSelector"></param> /// <returns></returns> public static S Update <S>(object instance, Expression <Func <T, bool> > updateCheck, Expression <Func <T, S> > resultSelector) { return(InnerRepository.Update <S>(instance, updateCheck, resultSelector)); }
/// <summary> /// 更新 /// </summary> /// <param name="instance">支持PO、POCO、IDictionary、IDictionaryOfKV, NameValueCollection 类型</param> /// <param name="updateCheck">除了id条件之外的附加条件</param> /// <returns></returns> public static int Update(object instance, Expression <Func <T, bool> > updateCheck) { return(InnerRepository.Update(instance, updateCheck)); }
/// <inheritdoc/> public override Task Update(T entity, CancellationToken cancellationToken) { SetModified(entity); return(InnerRepository.Update(entity, cancellationToken)); }
public override void Update(T entity) { InnerRepository.Update(entity); }
/// <inheritdoc/> public override Task Remove(T entity, CancellationToken cancellationToken) { SetDeleted(entity); return(InnerRepository.Update(entity, cancellationToken)); }