IBaseService.cs 393 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BizService
  7. {
  8. public interface IBaseService<TEntity> where TEntity : class, new()
  9. {
  10. bool Add(TEntity entity);
  11. bool Delete(int id);
  12. bool Edit(TEntity entity);
  13. TEntity Find(int id);
  14. List<TEntity> QueryList();
  15. }
  16. }