Example #1
0
 public Image(CardOverflowDb db) =>
Example #2
0
 public T Query <T>(Func <CardOverflowDb, T> query)
 {
     using var db = new CardOverflowDb(_options);
     return(query(db));
 }
Example #3
0
 public async Task <T> QueryAsync <T>(Func <CardOverflowDb, Task <T> > query)
 {
     using var db = new CardOverflowDb(_options);
     return(await query(db));
 }
Example #4
0
 public async Task CommandAsync(Func <CardOverflowDb, Task> command)
 {
     using var db = new CardOverflowDb(_options);
     await command(db);
 }
Example #5
0
 public void Command(Action <CardOverflowDb> command)
 {
     using var db = new CardOverflowDb(_options);
     command(db);
 }
Example #6
0
 public Commield(CardOverflowDb db) => _db = db;
Example #7
0
 public Template(CardOverflowDb db) => _db = db;
Example #8
0
 public Example(CardOverflowDb db)
 {
     _db = db;
 }