16 lines
415 B
C#
16 lines
415 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
{
|
|
public interface IEntityService<T>
|
|
{
|
|
Task<T> Create(T entity);
|
|
Task<T> Delete(T entity);
|
|
Task<T> Update(T entity);
|
|
Task<T> Get(int entityID);
|
|
Task<T> GetUnique(long entityProperty);
|
|
Task<IList<T>> Find(Func<T, bool> expression);
|
|
}
|
|
} |