public EFUnitOfWork(string connectionString) { if (String.IsNullOrEmpty(connectionString)) { throw new ArgumentException("Connection string can't be null or empty."); } _context = new PhotoAlbumsContext(connectionString); }
public EFUserRepository(PhotoAlbumsContext context) { _context = context; }