예제 #1
0
        public UnitOfWork(DatabaseContext context)
        {
            Contexto = context;

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