IDataProvider.cs 393 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Startech.IDAL
  7. {
  8. /// <summary>
  9. /// 基础接口
  10. /// </summary>
  11. /// <typeparam name="T"></typeparam>
  12. public interface IDataProvider<T>
  13. {
  14. IEnumerable<T> FindAll();
  15. T FindOne(string id);
  16. void Delete(string id);
  17. }
  18. }