Skip to content

mrtglr/Generic-Repository-Pattern-Template

Repository files navigation

Generic Repository Pattern Template

This repository serves as a template for implementing the Generic Repository Pattern in a .NET Core Web API (version 6.0). The template includes a generic entity repository and controller patterns, and it uses PostgreSQL as the database provider. Additionally, a Docker container is set up to run the PostgreSQL database alongside the application.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    docker build -t genericrepopatterndemo .
  2. Build and run the Docker container:

    docker-compose up -d

Configuration

The PostgreSQL database connection details can be configured in the appsettings.json file.

{
  "ConnectionStrings": {
    "DefaultConnection": "Host=localhost;Port=5432;Database=YourDatabaseName;Username=YourUsername;Password=YourPassword;"
  },
  // Other configurations...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published