Questions tagged as 'repository'

0
answers

Responsibility for service and repository

People would like to know who uses design-pattern service and repository , what would be a basic architecture structure, ie what the service can and can not do, and what are the responsibilities of the repository. I am currently using the follo...
asked by 16.03.2018 / 15:22
1
answer

doubts generic class asp.net mvc

Good evening, In my project I have an application layer where the class is structured as follows: namespace ProjetoTreino.Aplicacao { public class PessoaAplicacao { private readonly IRepositorio<Pessoa> repositorio; public...
asked by 29.01.2018 / 03:12
0
answers

Commit blocking with Redmine

I need to block a commit until its redmine condition is acceptable. Knowing that the required status index is 2 (In progress). Example (I do not use this just for understanding): if ["status" == "1"]; then $commit = true; else ["statu...
asked by 16.03.2016 / 18:32
0
answers

Distribution of responsibilities of an agenda module

In an application, I need to present a calendar / calendar, which is composed of events and locations. I'm using the concept of repositories, where I store all queries to a given entity. In this case, events and locations have their respective r...
asked by 03.12.2014 / 15:11
1
answer

Alternative to Unit of Work + Repository for sharing DbContext [closed]

I've seen people saying several times that it does not make sense to use Unit of Work + Repository with DbContext Unit of Work with repository Is it supposed to be "more secure" to use DbContext directly on a service layer? like: public c...
asked by 07.10.2018 / 18:51
1
answer

How to add includes by expression in repository pattern C #

I'm creating a RepositoryBase (Repository Pattern) with EntityFramework Asp.Net Core, and in it I'm creating a Where method, where I pass an entity where expression. So far the method works perfectly, but in this same method I would like to pass...
asked by 13.08.2018 / 19:41
1
answer

Null Exception when importing service in controller res

In the example below, I'm trying to do a RestFul Service by completely separating the @RestController, @Service, and @Repository. But I have a difficulty, because when I try to use the service inside the controller, the instance is always NULL,...
asked by 25.04.2018 / 16:49
1
answer

Duvida Interface asp.net mvc [closed]

Good evening, I have a doubt, I chose to work with generic interface and my doubt is: Does every entity need to have an interface inheriting from the generic interface? Ex: public interface IPessoaRepositorio : IRepositorio<Pessoa> Or...
asked by 29.01.2018 / 01:19
1
answer

Share local git repository with other users

Is there a way to share my git repository that is on my computer with other users? I do not want to use GitHub, I just want to share the repository so the other user can see the code and commits.     
asked by 30.11.2018 / 17:28
1
answer

Bank connection object: should I have only one for the whole system or one instance per class?

What is the best practice: to have only one point (Singleton) that returns the connections to the database or to create an instance of the connection for each object? My system accesses multiple banks and so I created a AcessoBanco cla...
asked by 23.11.2018 / 20:23