public static void AddUserInsect(UserInsect userInsect) { using (var con = GetUserDbConnection()) { con.InsertOrReplace(userInsect); } }
public static async Task AddUserInsect(UserInsect userInsect) { var con = await GetUserDbConnection(); await con.InsertOrReplaceAsync(userInsect); await con.CloseAsync(); }