Exemple #1
0
        private static void PrintSqlResult(SqlResult res)
        {
            if ((bool)res.HasData())
            {
                PrintRowResult(res);
            }
            else
            {
                PrintBaseResult(res);
            }

            Console.Write("Affected Rows: {0}\n", res.GetAffectedRowCount());
            Console.Write("Last Insert Id: {0}\n", res.GetLastInsertId());
        }