DbRange

static class · namespace z3n7 · source Db/DbExtencions.cs

public static class DbRange

Filling a table with account rows.

Methods

AddRange

public static void AddRange(this IZennoPosterProjectModel project, string tblName, int range = 0, bool log = false)

Extension method for IZennoPosterProjectModel. source

Inserts rows with ids from the current maximum + 1 up to range, in batches of 500. Existing ids are skipped.

Parameter Description
tblName Table with an id column.
range Highest id; 0 reads rangeEnd, and 10 is used with a warning when that is not a number.
log Write the query and its result to the project log.