示例#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);
 }