mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Refactor user entities and repositories, update seeders
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
This commit is contained in:
20
DataAccessLayer/Repositories/IRepository.cs
Normal file
20
DataAccessLayer/Repositories/IRepository.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user