예제 #1
0
 public UnitOfWork()
 {
     _ctx = new TradeContext();
     _ctx.Database.EnsureCreated();
 }
예제 #2
0
 public Repository(TradeContext ctx)
 {
     _ctx = ctx;
 }