mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Standardized property naming in user-related entities to use 'Id' suffix (e.g., UserAccountId). Moved and updated repository interfaces and implementations to the DataAccessLayer.Repositories namespace. Refactored DBSeed seeders to use repository classes and improved structure. Updated .gitignore and project references
21 lines
380 B
C#
21 lines
380 B
C#
|
|
|
|
using Microsoft.Data.SqlClient;
|
|
|
|
namespace DataAccessLayer.Repositories
|
|
{
|
|
public interface IRepository<T>
|
|
where T : class
|
|
{
|
|
void Add(T entity);
|
|
|
|
IEnumerable<T> GetAll(int? limit, int? offset);
|
|
|
|
T? GetById(Guid id);
|
|
void Update(T entity);
|
|
void Delete(Guid id);
|
|
|
|
T MapToEntity(SqlDataReader entity);
|
|
}
|
|
}
|