Basics setup, going to change how repos work
This commit is contained in:
14
DBConnection/Repositories/Interfaces/IRepository.cs
Normal file
14
DBConnection/Repositories/Interfaces/IRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace DBConnection.Repositories.Interfaces;
|
||||
|
||||
public interface IRepository
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IRepository<TEntityType> : IRepository where TEntityType : class
|
||||
{
|
||||
TEntityType Delete(TEntityType entity);
|
||||
Task<TEntityType> Upsert(TEntityType entity);
|
||||
Task<TEntityType?> Get(TEntityType entity);
|
||||
Task<TEntityType?> Get(params object?[]? keyValues);
|
||||
}
|
||||
Reference in New Issue
Block a user