Here are the examples of the csharp api class AnkiU.AnkiCore.Models.TransForm.Invoke(System.Collections.Generic.List) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: Anki-Universal
Source File: Models.cs
Source File: Models.cs
public void TransformFields(JsonObject model, TransForm fn) { if (JsonHelper.GetNameNumber(model,"id") == 0) return; List<object[]> r = new List<object[]>(); var list = collection.Database.QueryColumn<NoteTable>("select id, flds from notes where mid = ?", JsonHelper.GetNameNumber(model,"id")); foreach (NoteTable note in list) { r.Add(new object[] { Utils.JoinFields(fn(Utils.SplitFields(note.Fields).ToList())), DateTimeOffset.Now.ToUnixTimeSeconds(), collection.Usn, note.Id}); } collection.Database.ExecuteMany("update notes set flds=?,mod=?,usn=? where id = ?", r); }