/// <summary> /// 新增或更新 /// </summary> public int Save(List <T> saveObjects) { var saveable = simpleClient.AsSugarClient().Saveable(saveObjects); var result = saveable.ExecuteCommand(); return(result); }
public static void RegisterToSqlSugar( SimpleClient client, SqlSugarInterceptorDescriptor descriptor, Action<string, SugarParameter[]> executingAct = null, Func<string, SugarParameter[], object> executedAct = null, Func<Exception, object> errorAct = null, Func<string, LogEventLevel, bool> filter = null) { RegisterToSqlSugar(client.AsSugarClient() as SqlSugarClient, descriptor, executingAct, executedAct, errorAct, filter); }