2017-11-25 20:29:58 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2017-11-25 20:29:58 -05:00
|
|
|
|
{
|
|
|
|
|
public interface IEntityService<T>
|
|
|
|
|
{
|
|
|
|
|
Task<T> Create(T entity);
|
|
|
|
|
Task<T> Delete(T entity);
|
|
|
|
|
Task<T> Update(T entity);
|
|
|
|
|
Task<T> Get(int entityID);
|
2022-06-15 20:37:34 -04:00
|
|
|
|
Task<T> GetUnique(long entityProperty, object altKey);
|
2017-11-25 20:29:58 -05:00
|
|
|
|
Task<IList<T>> Find(Func<T, bool> expression);
|
|
|
|
|
}
|
2022-06-15 20:37:34 -04:00
|
|
|
|
}
|