mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 00:36:39 +00:00
20 lines
No EOL
447 B
C#
20 lines
No EOL
447 B
C#
using System;
|
|
using System.Linq.Expressions;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace TicketManager.Data
|
|
{
|
|
public interface IGenericRepository<T> where T : class
|
|
{
|
|
Task<IEnumerable<T>> List();
|
|
Task<T> Get(int id);
|
|
Task<IEnumerable<T>> Find(int id, Expression<Func<T, bool>> expr);
|
|
|
|
void Add(T entity);
|
|
|
|
void Update(T entity);
|
|
|
|
void Delete(T entity);
|
|
}
|
|
} |