Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 public Repository(TableContext db)
 {
     this.db = db;
 }
Exemplo n.º 3
0
 public DB(TableContext table)
 {
     this.table = table;
     this.Lines = new Repository <Line, int>(table);
 }