mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
This commit is contained in:
parent
1f4ece8b5b
commit
4feb3cd462
33 changed files with 526 additions and 119 deletions
28
Ombi.Store/Repository/IExternalUserRepository.cs
Normal file
28
Ombi.Store/Repository/IExternalUserRepository.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Ombi.Store.Repository
|
||||
{
|
||||
public interface IExternalUserRepository<T> where T : class
|
||||
{
|
||||
T Get(string id);
|
||||
T Get(int id);
|
||||
Task<T> GetAsync(string id);
|
||||
Task<T> GetAsync(int id);
|
||||
T GetUser(string userGuid);
|
||||
Task<T> GetUserAsync(string userguid);
|
||||
T GetUserByUsername(string username);
|
||||
|
||||
IEnumerable<T> Custom(Func<IDbConnection, IEnumerable<T>> func);
|
||||
long Insert(T entity);
|
||||
void Delete(T entity);
|
||||
IEnumerable<T> GetAll();
|
||||
bool UpdateAll(IEnumerable<T> entity);
|
||||
bool Update(T entity);
|
||||
Task<IEnumerable<T>> GetAllAsync();
|
||||
Task<bool> UpdateAsync(T users);
|
||||
Task<int> InsertAsync(T users);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue