示例#1
0
        public async Task <int> RunTests()
        {
            TryLog(() => con.Execute("[dbo].[LogRunningStoredProcedure]", new { }, null, 5, CommandType.StoredProcedure));
            await TryLog(() => con.ExecuteAsync("[dbo].[LogRunningStoredProcedure]", new { }, null, 5, CommandType.StoredProcedure));

            Console.WriteLine("Finished running");

            return(1);
        }
 public void Execute()
 {
     con.Execute("LogRunningStoredProcedure", new { }, null, 5, CommandType.StoredProcedure);
 }