Example #1
0
 public static TResult Execute <TResult>(Func <DB, TResult> lambda)
 {
     using (var ctx = new TableContext())
     {
         var db = new DB(ctx);
         return(lambda(arg: db));
     }
 }
Example #2
0
 public Repository(TableContext db)
 {
     this.db = db;
 }
Example #3
0
 public DB(TableContext table)
 {
     this.table = table;
     this.Lines = new Repository <Line, int>(table);
 }