2017-11-25 20:29:58 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibrary.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IEntityService<T>
|
|
|
|
|
{
|
|
|
|
|
Task<T> CreateProxy();
|
|
|
|
|
Task<T> Create(T entity);
|
|
|
|
|
Task<T> Delete(T entity);
|
|
|
|
|
Task<T> Update(T entity);
|
|
|
|
|
Task<T> Get(int entityID);
|
2018-02-10 23:33:42 -05:00
|
|
|
|
Task<T> GetUnique(long entityProperty);
|
2017-11-25 20:29:58 -05:00
|
|
|
|
Task<IList<T>> Find(Func<T, bool> expression);
|
|
|
|
|
}
|
|
|
|
|
}
|