Exemple #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);
     });
 }
Exemple #2
0
 public void FirstOrDefault_Typed_Sync()
 {
     SetupConnection(con =>
     {
         CategoryAsClass result = con.FirstOrDefault <CategoryAsClass>(@"select * from main.[Category]");
         Assert.NotNull(result);
     });
 }
Exemple #3
0
 public void SingleOrDefault_Typed_Sync()
 {
     SetupConnection(con =>
     {
         CategoryAsClass result = con.SingleOrDefault <CategoryAsClass>(@"select * from main.[Category] where Id = 1");
         Assert.NotNull(result);
     });
 }
Exemple #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);
     });
 }