/DapperRepositoryPattern

Repository Pattern with C# and Dapper ORM | FoxLearn

Primary LanguageC#MIT LicenseMIT

DapperRepositoryPattern

Repository Pattern with C# and Dapper ORM | FoxLearn

About

  • C#, WinForm, MSSQL 2022, Dapper, Repository Pattern(테이블 클래스, DB연동 클래스/인터페이스 분리)

Environment

  • IDE: Visual Studio 2022
  • Language: C#
  • Applied Project Template: .NET 8.0
  • NuGet
    • Dapper
    • System.Data.SqlClient
  • Third Party Libraries
  • DataBase: MS SQL 2022

작업

  • IGenericRepository를 상속해서 각 Repository 클래스를 구현할 경우 매개변수명칭은 클래스에 맞게 수정해서 사용한다.
  • ex) public bool Add(Student entity) => public bool Add(Student student)