public UnitOfWork( Net5FundamentalsEFDatabaseContext context, IUsuarioRepository usuarioRepository, IPostRepository postRepository, IComentarioRepository comentarioRepository ) { _context = context; Usuarios = usuarioRepository; Posts = postRepository; Comentarios = comentarioRepository; }
public GenericRepository(Net5FundamentalsEFDatabaseContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
public PostsController(Net5FundamentalsEFDatabaseContext context) { _context = context; }
public UsuarioRepository(Net5FundamentalsEFDatabaseContext context) : base(context) { }
public PostRepository(Net5FundamentalsEFDatabaseContext context) : base(context) { }