Пример #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));
     }
 }
Пример #2
0
 public Repository(TableContext db)
 {
     this.db = db;
 }
Пример #3
0
 public DB(TableContext table)
 {
     this.table = table;
     this.Lines = new Repository <Line, int>(table);
 }