예제 #1
0
 public ConnectedData()
 {
     _context = new SamuraiContext();
     _context.Database.EnsureCreated();
 }
예제 #2
0
 public SamuraiRepository(SamuraiContext context)
 {
     this.context = context;
 }
예제 #3
0
 public void RevertBattleChanges(int id)
 {
     //this is the simplest way.
     //Maybe later versions of EF will make it easier
     _context = new SamuraiContext();
 }
 public ConnectedData()
 {
     _context = new SamuraiContext();
     _context.Database.Migrate();
 }
예제 #5
0
 public BusinessDataLogic()
 {
     _ctx = new SamuraiContext();
 }
예제 #6
0
 public BusinessDataLogic(SamuraiContext ctx)
 {
     _ctx = ctx;
 }
예제 #7
0
 public BusinessDataLogic(SamuraiContext context)
 {
     _context = context;
 }