Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [repository]

A repository provides a storage mechanism for digital products. May refer to [version-control] like [git] or [svn]. An application specific tag should be used with this tag in order to identify the specific repository management interface that is being used unless the question is general in nature. See also: [repository-pattern]

-1
votes
2answers
40 views

Logic to create/update values while maintaining their uniqueness (in a multi-threaded environment)

Assume I have a dumb repository which stores numbers (for sake of this example). It is dumb because it may only create new record, update specified record and list all the existing records - no other ...
1
vote
1answer
54 views

What should I prefer: A subrepository, or a CMake ExternalProject?

I'm developing or maintaining a free software project Foo which uses CMake for a build system, as well as source control (e.g. Mercurial or Git), with the repository being available online. Now, this ...
3
votes
0answers
130 views

How to avoid maintaining database context over long periods with the repository pattern (And is this even a sensible Architecture?)

I'm trying to build a 'distributed' data system. My first attempt is built using Entity Framework. Very loosely, it's built around having Element objects, which themselves have a group of Property ...
3
votes
0answers
167 views

Proper GIT repository usage that accommodates feature branches and parallel testing

After reading around I found that there were various git workflows being used but there aren't enough (or I just haven't found them yet) info on how to use git properly with having test builds. I was ...
2
votes
0answers
574 views

Python and C++ repository structure

I'm refactoring the directory structure of a large Python repo that has a few dozen C and C++ files littered throughout. Is there a suggested architecture for a Python package that contains C/C++ code ...
2
votes
0answers
383 views

Multiple Entity Business Logic/Changes, C# MVC Repository Pattern

I have a standard C# MVC project which has a domain layer using EF and repository pattern. Say I have a model like: public class MainModel { public int MainModelID {get; set;} //Many other ...
1
vote
0answers
50 views

Should a UnitOfWork contain every Repository?

I'm trying to get the Repository/UnitOfWork pattern figured out. We're working on a project with EntityFramework and our DBContext contains 200+ tables. Right now our approach is to inject whatever ...
1
vote
0answers
54 views

How can I offload customer's data needs onto the customer?

I write code for an Engineering application where engineers keep giving me various specs in a form of tabular data - for example, a table with product model names and many various parameters for each ...
1
vote
0answers
244 views

Putting UnitofWork handler in the Request Model for DDD with Clean architecture?

I'm rearchitecting a system in Python, using SQLAlchemy for the data mapping layer, and the Zope Component Architecture for dependency injection and interface declaration. I am in the process of ...
0
votes
0answers
175 views

Can we use DAO(Data Access Object) instead repository in onion Architecture?

we are design a project in Onion Architecture. I read in various articles about the differences between dao(Data Access O and repository. In fact, we saw the structure of my project required to use ...
0
votes
0answers
42 views

Repository Unit of Work object type reference

I'm confused on how to best use this pattern. I have a project that uses Devart's Entity Framework for Oracle. The context is provided by them. So I have an interface IRepository and a single ...
0
votes
0answers
635 views

DAO vs Repository when extending spring data jpa repositories

I read several articles about diff between DAO and Repository patterns. From what I understood repository should not have query smth like this List query(AccountSpecification specification); and ...
0
votes
0answers
225 views

Is implementing anytime it makes sense aggregation and composition necessary good?

As I'm drawing my project's classes diagram, I'm wondering... Let's take Customer's relationship with Order for example. It seems pretty natural and logic to aggregate Orders to the User... So ...
0
votes
0answers
356 views

Should the service layer be database implementation agnostic?

I'm rebuilding an already existing application I've built before and I would like to implement a few patterns in as a good manner as possible. I'm experimenting with two dabase types, where I ...
0
votes
0answers
81 views

Changes across repositories and branch names - Best Practice

I need to make some changes that are going to take place over a few repositories. When creating new branch names for each repository is it recommended to give the branches the same name in each ...
0
votes
0answers
89 views

Correct place for linq to DB requests in MVC app

Currently i see linq requests everywhere in solution(controllers, helpers, business logic, repositories). I would like to store all of them at one place(hope this will prevent duplicates and make ...
0
votes
0answers
563 views

Repository Pattern: How to structure repositories with nested tables?

I'm working on an API and I always seem to run into this thought debate. When designing the code structure that interacts with the database (repositories, data providers ect..) how do I structure the ...
0
votes
0answers
104 views

Managing pagination or cursor with deleting items in the list

I have a REST API that could GET, POST, PUT, DELETE models. My problem is when I paginate that with ajax call combining with DELETE operations. My problem comes after few steps list one page list ...