Example #1
0
 public void SingleOrDefault_Typed_Async()
 {
     SetupConnection(async con =>
     {
         CategoryAsClass result = await con.SingleOrDefaultAsync <CategoryAsClass>(@"select * from main.[Category] where Id = 1").ConfigureAwait(false);
         Assert.NotNull(result);
     });
 }
Example #2
0
 public void FirstOrDefault_Typed_Sync()
 {
     SetupConnection(con =>
     {
         CategoryAsClass result = con.FirstOrDefault <CategoryAsClass>(@"select * from main.[Category]");
         Assert.NotNull(result);
     });
 }
Example #3
0
 public void SingleOrDefault_Typed_Sync()
 {
     SetupConnection(con =>
     {
         CategoryAsClass result = con.SingleOrDefault <CategoryAsClass>(@"select * from main.[Category] where Id = 1");
         Assert.NotNull(result);
     });
 }
Example #4
0
 public void First_Typed_Async()
 {
     SetupConnection(async con =>
     {
         CategoryAsClass result = await con.FirstAsync <CategoryAsClass>(@"select * from main.[Category]").ConfigureAwait(false);
         Assert.NotNull(result);
     });
 }