You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
361 B
12 lines
361 B
namespace SharedEF;
|
|
|
|
public interface IGenericRepository<T>
|
|
{
|
|
Task<IEnumerable<T>> GetItems(int index, int count, string? orderingProperty = null, bool descending = false);
|
|
Task<T?> GetItemById(int id);
|
|
Task<T?> UpdateItem(int oldItem, T newItem);
|
|
Task<T?> AddItem(T item);
|
|
Task<bool> DeleteItem(int item);
|
|
Task<int> GetNbItems();
|
|
|
|
} |