Facebook
From Tacky Coyote, 6 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 269
  1. using ManageNoticeProperty.DAL;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ManageNoticeProperty.Models.Repository
  9. {
  10.     public interface IRepository<T> where T : class
  11.     {
  12.         T GetID(int Id);
  13.         IEnumerable<T> GetOverview(Func<T, bool> predicate = null);
  14.         void Add(T entity);
  15.  
  16.         void Update(T entity);
  17.  
  18.         void Delete(T entity);
  19.  
  20.         void Save();
  21.  
  22.     }
  23. }