Exemplo n.º 1
0
 public EntityRepository()
 {
     _context = new SqlContext ();
 }
Exemplo n.º 2
0
 public EntityRepository(string nameOrConnectionString)
 {
     _context = new SqlContext(NameOrConnectionString = nameOrConnectionString);
 }
Exemplo n.º 3
0
 public EntityBackup(EntityRepository repository, int id)
 {
     _context = (_repository = repository).NameOrConnectionString != null ? new SqlContext(repository.NameOrConnectionString) : new SqlContext ();
     _backup = _context.Backups.Single(a => a.BackupId == id);
 }