Azavea.Open.DAO.Memory.MemoryDaLayer.UpdateBatch C# (CSharp) Method

UpdateBatch() public method

Updates a list of data object records of the same type.
public UpdateBatch ( ITransaction transaction, ClassMapping mapping, List criteriaList, object>.List propValueDictionaries ) : void
transaction ITransaction The transaction to do this as part of.
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.
return void
        public override void UpdateBatch(ITransaction transaction, ClassMapping mapping, List<DaoCriteria> criteriaList, List<IDictionary<string, object>> propValueDictionaries)
        {
            for (int x = 0; x < criteriaList.Count; x++)
            {
                Update(transaction, mapping, criteriaList[x], propValueDictionaries[x]);
            }
        }