Questions tagged [repository]
For questions about the implementation of the repository design pattern.
144
questions
0
votes
0
answers
59
views
The Wacky World of ANSI Escape Sequences?
I just finished creating my first npm package (for learning, not competition) and published it. Now I want to ask some questions, for example:
Is my method of writing code good (for later maintenance ...
3
votes
2
answers
732
views
Banking System in C++ [V2]
this is the second version of my BankingSystem in C++ for the first one go here: Banking System console app in C++
I did quite a lot of changes since the last version mainly spliting the User class ...
5
votes
4
answers
3k
views
Banking System console app in C++
I built a banking system in C++ (still a lot of features to do but (I decided to post it here to see what can I change so I wont make those mistakes in the future).
User header and c++ files
Header
<...
4
votes
1
answer
705
views
Unit of Work & Repository Pattern - Injecting UoW into Repository Base
Description
I am implementing the Unit of Work & Repository Pattern with Dapper as my ORM and PostgreSQL as the relational database. I have seen examples of UoW where:
The UoW class creates an ...
2
votes
1
answer
171
views
Command handlers in node.js
Description
This javascript code uses tmi.js to listen for chat messages in a Twitch chat and perform certain actions depending on their content. In the sample code ...
1
vote
0
answers
41
views
Frontend to handle course planning and administration [closed]
I read up on and dived into the Repository pattern for a project I am working on.
I have understood that the repository abstracts the actual access to any form of storage for my data model. What I was ...
1
vote
0
answers
135
views
.NET Repository Pattern
I'm currently in the process of defining some framework, one of the first things that I thought I could start with was defining some repository pattern/layer.
I generally wanted some input on it, ...
0
votes
1
answer
492
views
Generic Base Repository implementation with Unit of Work in C#
I have seen a lot of Repository pattern implementations with Unit of Work. The simplest way of implementing this I came across is using hard-coded repos (such as this one), while the way recommended ...
2
votes
1
answer
150
views
Is it good way to user dao when assembling dto to entity or not?
I have User entity that has relationship to other entities(Order,Profile)
When I assemble entity from dto and back I need assemble order and profile entity too.
User entity:
...
1
vote
1
answer
120
views
Is My Controller too Coupling?
To put it in context, I had the assignment to do for a job interview in Node.JS, which basically making CRUD with products (and it have certain conditions).
The assignment was well-understandable, and ...
5
votes
2
answers
9k
views
Should i throw exceptions in the service layer or repository, and catch it on the controller? [closed]
I read some answers here on stack exchange, but none really "hits the nail on the head" about where to throw exceptions, where I shouldn't and where to catch them.
the idea that an exception ...
2
votes
1
answer
2k
views
Is repository pattern violated while using IQueryable outside of it?
I am writting an API backend application using .NET Core and Visual Studio.
Here is the solution structure:
[ProjectName] - Solution
...
2
votes
1
answer
123
views
Reducing Inventory Quantity When Order Is Being Processed
I've got a method which removes quantity from inventory when an order is completed. If there is not enough inventory quantity available, the order completion fails and the sql transaction is rolled ...
2
votes
0
answers
60
views
Monitor room repository for livedata changes and update views
I have built a quiz app. It is my first project so the purpose is to learn app development at this stage.
There are two key things which I am wondering how to do better (the app is fully functional).
...
4
votes
2
answers
3k
views
Repository pattern with Unit of work using ADO.NET in C# to authenticate user from database
So I am using the latest version of Dapper and it works great for mapping my POCO classes but there are some scenarios where I need to return a DataSet instead of ...