public UnitOfWork(DatabaseContext context) { Contexto = context; EditorialRepository = new EditorialRepository(Contexto); BookRepository = new BookRepository(Contexto); CategoryRepository = new CategoryRepository(Contexto); }
public EditorialServiceImp() { this.ed = new EditorialRepositoryImp(); }
public EditorialService() { conexion = new SqlConnection(@"Data Source=DESKTOP-LAILH2Q\SQLEXPRESS;Initial Catalog=dbEduBook; Integrated Security=True"); Repositorio = new EditorialRepository(conexion); }