10/02/2026
Useful Math Symbols to Understand Equations Better As a postgrad student and AI enthusiast, often I have to read research papers on AI/ML topics. But...
Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from BitRoot Tech, Dhaka.
10/02/2026
Useful Math Symbols to Understand Equations Better As a postgrad student and AI enthusiast, often I have to read research papers on AI/ML topics. But...
24/04/2025
🔎Exploring Design Patterns: Strategy Pattern Introduction The Strategy Design Pattern is a behavioral design pattern that enables...
18/04/2025
C# & .NET Insights: AsEnumerable in LINQ The AsEnumerable LINQ function might seem redundant at first glance since it simply returns the...
16/11/2024
🔎Exploring Design Patterns: Adapter Pattern General Structure: Target (IJsonAdapter): The interface that clients expect to...
28/10/2024
Implementing Thread Safe Singleton Pattern in C #
Implementing Thread Safe Singleton Pattern in C# Singleton (Thread Safe) private static readonly Lazy...
🔵 Brief Introduction to Repository Pattern
Repository pattern allows us to decouple the business logic from the underlying data access operations. It ensures that business logic doesn’t need to worry about how the data is retrieved or saved.
🔵 Implementation
1️⃣ Define interface specifying data access methods. (e.g. Add, Delete, GetAll, GetById)
2️⃣ Implement the interface in concrete repository class that handle actual data access logic
3️⃣ Use dependency injection to inject the repository interface into services, business logic layers.
That's it! Only 3 steps! In the comments you will find an example repo of Repository Pattern implementation.
🔵 Some benefits of using repository pattern are:
👉 Separation between business logic and data access logic leading to more organized code.
👉 Repositories can be mocked during unit testing making it easier to test without a real database.
👉 All the data access logic is centralized. Making it easy to modify and also for new comers it is easier to find the data access code.
👉 Easily change data storage mechanism (e.g. from SQL Server to MongoDB)
Looking for a simple project to get started with full-stack web app development? Here's one for you.
Todo App
Todo is basically a CRUD application built with .NET for the APIs, React for the UI and MS SQL Server as database. This application can also be run using in memory database provided by Entity Framework.
Functionalities:
- Adding item.
- Editing item.
- Deleting item.
- Mark item as completed.
- Mark completed item as incomplete.
- Sort item by title, due date, completion status.
- Search item by title, description and comment.
- Click on item to see details popup.
Check github link in comment.