Azavea.Open.DAO.CSV.CsvDaLayer.UpdateBatch C# (CSharp) Méthode

UpdateBatch() public méthode

Updates a list of data object records of the same type. NOTE: At the moment this just loops calling Update().
public UpdateBatch ( ITransaction transaction, ClassMapping mapping, List criteriaList, object>.List propValueDictionaries ) : void
transaction ITransaction Should be null, transactions are not supported.
mapping ClassMapping The mapping of the table or other data container we're dealing with.
criteriaList List A list of DaoCriteria. /// Each item in the list should represent the criteria for /// rows that will be updated per the accompanying dictionary.
propValueDictionaries object>.List A list of dictionaries of column/value pairs. /// Each item in the list should represent the dictionary of non-ID column/value pairs for /// each respective object being updated.
Résultat void
        public override void UpdateBatch(ITransaction transaction, ClassMapping mapping, List<DaoCriteria> criteriaList, List<IDictionary<string, object>> propValueDictionaries)
        {
            switch (_connDesc.Type)
            {
                case CsvConnectionType.Directory:
                case CsvConnectionType.FileName:
                    // These are OK.
                    break;
                default:
                    throw new LoggingException("Connection does not support updating in batch: " + _connDesc);
            }
            base.UpdateBatch(transaction, mapping, criteriaList, propValueDictionaries);
        }