/// <summary> /// 内部方法,sql不处理 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public bool DeleteAll <T>() where T : class { if (CurrentTransaction != null) { return(CurrentConnection.DeleteAll <T>(CurrentTransaction, CommandTimeout)); } using var connection = GetDbConnection(DataSourceEnum.MASTER); return(connection.DeleteAll <T>(CurrentTransaction, CommandTimeout)); }