Exemple #1
0
        public async Task CopyRecords <TRecord>(AirTable <TRecord> destTable, IEnumerable <string> fieldNames = null) where TRecord : AirRecord
        {
            var list = await List <TRecord>();

            foreach (var record in list.Records)
            {
                var fields = record.GetFields(fieldNames);
                await destTable.CreateRecord <TRecord>(fields);
            }
        }
Exemple #2
0
 public Task CopyRecords <TRecord>(AirTable <TRecord> destTable, params string[] fieldNames) where TRecord : AirRecord
 => CopyRecords(destTable, (IEnumerable <string>)fieldNames);