Beispiel #1
0
 protected T Execute <T>(Func <LunchDatabase, T> action)
 {
     using (LunchDatabase database = new LunchDatabase())
     {
         return(action(database));
     }
 }
Beispiel #2
0
 protected void Execute(Action <LunchDatabase> action)
 {
     using (LunchDatabase database = new LunchDatabase())
     {
         action(database);
     }
 }